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 ...Bug - Friendly URL with accentsBug - Friendly URL with accents
Previous
 
Next
New Post
8/10/2009 2:31 PM
 

Some of my page names contains french accents and when I try to navigate to them I get a 404 error, page cannot be found. 

For example
http://byebyemaison.ca/Produits/Sitewebpersonalisépourpropriéàvendre.aspx

And if I replace the accents with the corresponding letter without the accent then it seems to be working fine
http://byebyemaison.ca/Produits/Sitewebpersonalisepourproprieavendre.aspx

Any solution arround this other the not using the Friendly URL feature?

btw I am using DNN 5.1.1, brand new install.

Thanks,
Eric

 

 
New Post
8/10/2009 2:42 PM
 

Hey Eric,

If I'm not mistaken, you can configure the regular expression (regexMatch proprety) in the DNNFriendlyUrl section of the web.config file. You could potentially write that regular expression in such a way to exclude the pages which contain those characters so that it falls back to the "normal" friendly URLs instead of using the "human" friendly URL provider.

If you want a tool to work on regular expressions check out Expresso or Regex Buddy.

I haven't investigated it officially (maybe someone else out there can jump in and clarify) but I believe the URL provider available from Bruce Chapman (Ifinity Url Provider) has more options than the one in the core and may handle this issue more gracefully. Or there could always be a better way to handle it in the core too. :)

Hope that helps,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
8/11/2009 12:59 PM
 

Ian's correct, you can use the regexMatch property. However, that's not ideal, and we do have it on our list to look at - in all likelyhood we'll add a parameter to allow listing of disallowed characters i.e. a blacklist rather than a whitelist filter. This would mean characters would work by default, rather than the current, opening up the provider to support internationalised url's

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/12/2009 7:43 PM
 

Thank you for your reply.  I am trying to find more information about how to use the regexMatch feature but there is not much in the documentation.   Could any of you help me with this? 
Thanks,
Eric

 
New Post
8/13/2009 12:58 PM
 

it just uses standard asp.net regular expressions (see regexlib.com for guides and online testers)

The default expression looks like this :regexMatch="[^a-zA-Z0-9 _-]"

which essentailly means any character between lowercase a and lowecase z, any character between uppercase A and uppercase Z, the numbers 0-9, and the characters "_" and "-". You can extend this easily by doing something like:

regexMatch="[^a-zA-Z0-9 _-ÁáÂâá]"

and so one adding support for any additional characters.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Bug - Friendly URL with accentsBug - Friendly URL with accents


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