Copied to clipboard

Flag this post as spam?

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


  • Scott 95 posts 277 karma points
    Mar 30, 2016 @ 11:27
    Scott
    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 95 posts 277 karma points
    Mar 30, 2016 @ 14:39
    Scott
    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 87 posts 175 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 87 posts 175 karma points
    May 23, 2016 @ 14:16
  • Ali 32 posts 125 karma points
    Nov 01, 2022 @ 08:09
    Ali
    0

    Hi, I am having sama issue as the original post, with Umbraco 10.3.2 and uSkinned. I have spent some time trying to figure out how the following settings do work but no luck

    Which settings do I need to set in order to replace both 'Å' and 'å' with 'aa' regardless where they are in the word?

    Umbraco request handler settings https://our.umbraco.com/documentation/Reference/Configuration/RequestHandlerSettings/

    I am also wondering if its possible to allow to have 'å' in URL?

Please Sign in or register to post replies

Write your reply to:

Draft