Copied to clipboard

Flag this post as spam?

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


  • Manish 373 posts 932 karma points
    Apr 28, 2017 @ 06:04
    Manish
    0

    Umbraco url Apostrophe problem

    Hi All I am using umbraco 7.5 Name of my page is some like that

    About John's

    and Umbraco CMS generate Url like this

    /about-john-s/

    But I wanted url something like that

    /about-johns/

    I have tried setting in umbraco config file something like that

    <urlReplacing removeDoubleDashes="false" toAscii="false">
      <char org="'"></char>
    </urlReplacing>
    

    But this is not working. Someone please help me out

    Thanks

  • Manish 373 posts 932 karma points
    Apr 28, 2017 @ 06:37
    Manish
    0

    Also try by adding this in web.config file

     <add key="umbracoUseDirectoryUrls" value="false" /> 
    

    But it added .aspx at end.

    Thanks

  • Dennis Adolfi 1082 posts 6450 karma points MVP 6x c-trib
    Apr 28, 2017 @ 06:42
    Dennis Adolfi
    101

    Hi Manish.

    I think what you have written is correct, but I've added the ´ sign just to sure that you are removing the right symbol.

    However, when you add a new urlReplacing rule, all your existing URL:s will not automagically update, that would be super scary. Instead, you need to Save & Publish for your new Url to be generated.

    So I added this to my umbraco.config file, under the requestHandler section:

    <urlReplacing removeDoubleDashes="false" toAscii="false">
          <char org="'"></char>
          <char org="´"></char>
          <char org="`"></char>
        </urlReplacing>
    

    And i got this url:

    /about-johns/
    

    See animation:

    enter image description here

    NOTE: I'm also using Umbraco 7.5

    Best of luck to you Manish. Let me know how it goes or if you need anymore help.

    Take care / Dennis

  • Manish 373 posts 932 karma points
    Apr 28, 2017 @ 08:24
    Manish
    1

    Yeah actually the problem was symbol

    using this working fine now

     <char org="’"></char>
    

    Thanks Dennis

  • Dennis Adolfi 1082 posts 6450 karma points MVP 6x c-trib
    Apr 28, 2017 @ 09:28
    Dennis Adolfi
    0

    Glad it worked out for you Manish! Happy to help!

    Have a great weekend!

  • 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.

    Continue discussion

Please Sign in or register to post replies