Copied to clipboard

Flag this post as spam?

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


  • Rune Grønkjær 1303 posts 2895 karma points
    May 22, 2017 @ 11:28
    Rune Grønkjær
    0

    Special characters in Umbraco 7 url

    Hi Guys,

    I ye olde times we could change which special characters should be changed when Umbraco creates url's. We could do that in the umbracoSettings.config file as explained many places including here: https://our.umbraco.org/forum/using/ui-questions/3356-Rewriting-characters-in-URL

    How do we do that in Umbraco 7? I can't find the functionality. Am I blind or have it been removed?

    How would I do it?

    /Rune

  • Craig Mayers 164 posts 507 karma points
    May 22, 2017 @ 11:44
    Craig Mayers
    100

    Hi Rune,

    I believe Umbraco does this automatically for you now, so you don't have to worry about it.

    Regards

    Craig

  • Rune Grønkjær 1303 posts 2895 karma points
    May 22, 2017 @ 12:22
    Rune Grønkjær
    0

    I thought as much. I just have a customer asking if we can change e.g. é to e. It dosn't look like it I guess

  • Bjarne Fyrstenborg 1182 posts 3441 karma points MVP 4x c-trib
    May 22, 2017 @ 11:49
    Bjarne Fyrstenborg
    2

    Hi Rune

    I have also noticed that the UrlReplacing has been removed or changed although it seems it should add the basic stuff: https://github.com/umbraco/Umbraco-CMS/search?utf8=%E2%9C%93&q=urlReplacing

    But on some of our Umbraco Cloud projects I don't have this entry in umbracoSettings.config .. not sure it happens only, when installing Umbraco via NuGet?

    However I have noticed replacing of characters not are consistent, where æ, ø and å characters where replaced, but not Æ, Ø and Å.

    In one of our projects a have the following in /Config/umbraoSettings.config:

    <requestHandler>
        <!-- this will ensure that urls are unique when running with multiple root nodes -->
        <useDomainPrefixes>false</useDomainPrefixes>
        <!-- this will add a trailing slash (/) to urls when in directory url mode -->
        <addTrailingSlash>false</addTrailingSlash>
        <urlReplacing removeDoubleDashes="false" toAscii="false">
          <char org="Æ">ae</char>
          <char org="Ø">oe</char>
          <char org="Å">aa</char>
          <char org="æ">ae</char>
          <char org="ø">oe</char>
          <char org="å">aa</char>
          <char org="é">e</char>
        </urlReplacing>
    </requestHandler>
    

    /Bjarne

  • 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