Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Scott Hugh Alexandar Petersen 87 posts 235 karma points
    Mar 30, 2016 @ 11:27
    Scott Hugh Alexandar Petersen
    0

    Danish æ, ø and å in url

    Hi all,

    When using a capital Æ, Ø or Å no matter if it is in the beginning of the page name or in the middle or end then it will create an url with a lowercase æ, ø or å.

    Example: Page name: Ål | url: ål Page name: MÅL | url: mål Page name: Mål | url: maal Page name: ål | url: aal

    Might there be a fix somewhere or anywhere to change this?

    Scott

  • Martin Almström 33 posts 159 karma points
    Mar 30, 2016 @ 13:50
    Martin Almström
    100

    Hi,

    You could add the characters in umbracoSettings.config

        <requestHandler>
         <urlReplacing ...>
           ....
           <char org="Æ">ae</char>
         </urlReplacing>
        </requestHandler>
    

    Hope that helps

    /Martin

  • Scott Hugh Alexandar Petersen 87 posts 235 karma points
    Mar 30, 2016 @ 14:39
    Scott Hugh Alexandar Petersen
    0

    Hi Martin,

    I actually tried that and it gave me an error.

    However I looked into the error again and found that you cannot use Æ, Ø and Å you have to use an encoded value like this:

    <char org="&#198;">ae</char>
    <char org="&#216;">oe</char>
    <char org="&#197;">aa</char>
    

    Also these are the values for the capital letters of course.

    Anyways, thank you.

    Regards,

    Scott

  • Tajamal 71 posts 159 karma points
    May 23, 2016 @ 12:39
    Tajamal
    0

    Hi Scott and Martin

    When I replaced all three danish letters, they worked but created another problem with all the other letters in any word.

    1. Solved the first letter problem
    2. And created another problem and had to add lower case characters to the rule as well.
    3. I also noticed that characters like "é" couldn't be converted so had to another rule for that.

    Aren't there any better way of fixing this? As at some point I might run into another character which is not working.

  • Tajamal 71 posts 159 karma points
    May 23, 2016 @ 14:16
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies