Copied to clipboard

Flag this post as spam?

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


  • Mark Bowser 266 posts 852 karma points c-trib
    Jan 08, 2015 @ 20:08
    Mark Bowser
    0

    urlReplacing can't replace character with exclamation point

    I am using umbraco 6.2.4. I am attempting to use the config/umbracoSettings.config urlReplacing section to replace a charter with an exclamation point in the umbraco urls.

    My problem is that no matter what I do, the exclamation points all get replaced by '-' characters. I can redirect ' ' to '', but as a test, I attempted to redirect ' ' to '!' and nothing happened. If I then create a second rule that redirects '!' to '', my ' ' characters will redirect all the way to '_'.

    Why is umbraco overriding my '!' redirects? How can I work around this?

    <urlReplacing removeDoubleDashes="true">
      <char org=" ">-</char>
      <char org="&quot;"></char>
      <char org="'"></char>
      <char org="%"></char>
      <char org="."></char>
      <char org=";"></char>
      <char org="/"></char>
      <char org="\"></char>
      <char org=":"></char>
      <char org="#"></char>
      <char org="+">plus</char>
      <char org="*">star</char>
      <char org="&amp;"></char>
      <char org="?"></char>
      <char org="æ">ae</char>
      <char org="ø">oe</char>
      <char org="å">aa</char>
      <char org="ä">ae</char>
      <char org="ö">oe</char>
      <char org="ü">ue</char>
      <char org="ß">ss</char>
      <char org="Ä">ae</char>
      <char org="Ö">oe</char>
      <char org="|">-</char>
      <char org="&lt;"></char>
      <char org="&gt;"></char>
      <char org="!">!</char>
    </urlReplacing>
    
  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jan 08, 2015 @ 21:16
    Jan Skovgaard
    0

    Hi Mark

    I think it's because exclamation marks simply are not safe to use in url's would be mys guess.

    Why is the exclamation mark important for you to have in the url?

    Don't know if you can perhaps make use of the advice given in this post perhaps? http://www.dwfaq.com/tutorials/miscellaneous/speciallinksencoding.asp

    /Jan

  • 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