I'm working on a multi domain website, where easch domain is a different language, and I have used UrlRplacing for special characters from the language of the first domain. Now when I have to add UrlReplacing for the next doamin (with another language than the first doamin) I found that the same same character might need to be replaced differently depending on the language of the domain.
Therefore my question is: Is it possible to make UrlReplacings depending on the culture the domains have ?
NOTE: This only works on the umbraco instance that I am working on as the url begins with the culture of the page e.g. www.example.com/de-de/news/article/ and so the solution about would be able to use the replaceMany function that is currently used to check if the url passed in contains the corresponding culture code.
Please please please please do not start running custom builds of Umbraco, it is not necessary and never advisable as you will never be able to upgrade and take advantage of security fixes, performance increases and new features.
Culture dependent UrlReplacing
Hello,
I'm working on a multi domain website, where easch domain is a different language, and I have used UrlRplacing for special characters from the language of the first domain. Now when I have to add UrlReplacing for the next doamin (with another language than the first doamin) I found that the same same character might need to be replaced differently depending on the language of the domain.
Therefore my question is: Is it possible to make UrlReplacings depending on the culture the domains have ?
Thanks in advance for any efforts :-)
I am having the same issue, where the French version should replace 'Ü' with 'U', but the German version should replace 'Ü' with 'Ue'.
The only way that I could see of doing this was to edit the Umbraco.Core logic in \Umbraco.Core\Strings\DefaultShortStringHelper.cs.
My idea was to change the urlReplacing xml from
With something along these lines
NOTE: This only works on the umbraco instance that I am working on as the url begins with the culture of the page e.g. www.example.com/de-de/news/article/ and so the solution about would be able to use the replaceMany function that is currently used to check if the url passed in contains the corresponding culture code.
Please please please please do not start running custom builds of Umbraco, it is not necessary and never advisable as you will never be able to upgrade and take advantage of security fixes, performance increases and new features.
Make sure to look into IContentFinders for example - https://our.umbraco.org/documentation/reference/routing/request-pipeline/icontentfinder
You might consider to do this on IIS level with url rewriting, not ideal but at least you don't have to fix it in Umbraco.
is working on a reply...