Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Special characters in Urls - Friendly Url SettingsSpecial characters in Urls - Friendly Url Settings
Previous
 
Next
New Post
7/13/2012 2:04 AM
 

Hi,

I have some pages (tabs) with German "Umlauts" in the title, and Friendly Url Settings are activated. Therefore, such an Url looks like

http://intranet/Personalentwicklung/BroschürenundLeitfäden.aspx

When I click on Module Settings on an module on such a page, a yellow screen of death appears saying:

A potentially dangerous Request.Path value was detected from the client (%).

The Url looks like

http://intranet/Personalentwicklung/Brosch%25C3%25BCrenundLeitf%25C3%25A4den/tabid/1274/ctl/Module/ModuleId/1836/Default.aspx?popUp=true

When I turn off Friendly Url Settings, everything works fine.

Can anyone tell me what rules I have to add in the Friendly Url Settings to replace German Umlauts as ä,ö,ü,A,Ö,Ü with some replacement as a,o,u,A,O,U?

Best wishes
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
7/13/2012 4:21 PM
 
there is no replacement support in the definition (you can define what characters are valid via the regexp parameter of DNNFriendlyUrl), but you could write rules in config/siteurls.config to do this.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/14/2012 5:13 AM
 
Cathal,

I fear my knowledge is a bit lousy in this. Can you give me a recipe how to do that?

Best wishes
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
7/14/2012 7:46 PM
 
actually on 2nd thoughts I'm wrong - you can write a regexp to recognise umlaut's but wont be able to (easily) rewrite it-you could use [^äÄÜüÖö] to detect their existance and pipe the request to the tabid equivalent possibly, but really the best solution is a urlprovider that supports this.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/16/2012 1:52 AM
 
Cathal,

after investigating some forums, I found out that the problem is solved by changing the attribute includePageName to false in the following line of web.config:

< add name="DNNFriendlyUrl" type="DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider, DotNetNuke.HttpModules" includePageName="true" regexMatch="[^a-zA-Z0-9 _-]" urlFormat="humanfriendly" / >

The Url still shows the tabname (..../BroschürenundLeitfäden.aspx), but now there is no error in the popup anymore.

Does this have some side effects that are better to avoid?

Best wishes
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Special characters in Urls - Friendly Url SettingsSpecial characters in Urls - Friendly Url Settings


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out