Copied to clipboard

Flag this post as spam?

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


  • Andrew Unger 45 posts 148 karma points
    Jul 21, 2020 @ 14:00
    Andrew Unger
    0

    url replacing not working

    I am using url replacing to change chars with accent marks in the url to ones without the accent marks. I'm not sure why it's not working but I saw someone say something about writing a url provider or something like that, but I'm not sure exactly how that would need done or if there is another solution to getting this to work. Here is what I have in my umbracosettings.config. Any help with this would be appreciated.

     <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>true</addTrailingSlash> 
    
      <urlReplacing removeDoubleDashes="false" toAscii="false">
        <char org="ó">o</char>     
        <char org="á">a</char>
        <char org="é">e</char>
        <char org="í">i</char>
        <char org="ú">u</char>
        <char org="ü">u</char>
        <char org="ñ">n</char>        
      </urlReplacing>
    
    </requestHandler>
    
  • Andrew Unger 45 posts 148 karma points
    Jul 21, 2020 @ 16:26
    Andrew Unger
    0

    I figured out the issue for anyone that has the same problem. This code is fine and it works the issue was the content nodes needed to be re saved and published for it to take effect.

Please Sign in or register to post replies

Write your reply to:

Draft