Converting non english characters in Content URL
b
Hello everyone,some of my contents in my umbraco are turkish that causes few issues with the URL's sometime For example if my content has the letter "Ü" it converts the url into "ue" but instead of that i want to convert into just normal "U" Any ideas will be appreciated Thanks! PS: I'm using umbraco 13
j
You can override the default config for how it converts to url safe letters: https://docs.umbraco.com/umbraco-cms/reference/configuration/requesthandlersettings#char-collection
b
Oh thanks Does it seem correct?
Copy code
json
"RequestHandler": {
  "EnableDefaultCharReplacements": true,
  "UserDefinedCharCollection": [
    {
      "Char": "ü",
      "Replacement": "u"
    }
  ]
},
Because it seems not to be working :/
j
Assuming it is placed correctly in
Copy code
json
"Umbraco": {
  "CMS": {
    "RequestHandler": {
And you've done what it says to refresh the url generation in this blue box it should work: https://cdn.discordapp.com/attachments/1276509589449478195/1276518856390873138/image.png?ex=66c9d253&is=66c880d3&hm=658bd8c7d69da8e0a28a17fc2f84968658f5ea7703ad310b7bc2176b9787feaa&
b
You are a legend! Thanks a lot
k
As a pretty awesome bonus, Umbraco will create redirects from the old URLs to the new URLs when you change this. Otherwise this configuration would be difficult to modify on production sites.
b
Yeah i noticed,but i think i have to unpublished and publish the content
k
We didn't (U9 IIRC). Just change the scheme, restart, redirects created.
b
Alright,thanks a lot.
52 Views