Is it possible to customize how Umbraco renders internal links.
In the RTE they look like "/{localLink:1592}".
On the website when displaying the content, the links get changed to their respective document.
However, we need to add an extra URL part in front of the URL's.
For example /my/url/path/ needs to change to /fr/my/url/path/
I've just tried this and it looks to work. If you add your language under culture & hostnames.
You can put language specific domains in here so you might have my.custom.dom/fr and set that on your root node. In theory, when the page links are rewritten this would be taken into account!
Customizing LocalLink internal links?
Hey.
Is it possible to customize how Umbraco renders internal links. In the RTE they look like "/{localLink:1592}".
On the website when displaying the content, the links get changed to their respective document. However, we need to add an extra URL part in front of the URL's.
For example /my/url/path/ needs to change to /fr/my/url/path/
Is this feasible somehow?
Thanks.
Hi,
I've just tried this and it looks to work. If you add your language under culture & hostnames.
You can put language specific domains in here so you might have my.custom.dom/fr and set that on your root node. In theory, when the page links are rewritten this would be taken into account!
Many thanks, David
I tried your suggestion, but it doesn't seem to work in our case.
There must be some code in Umbraco that does the actual LocalLink to actual content URL conversion? Can't it be overridden somehow?
K.
Maybe I'm misunderstanding what you're trying to do.
If the content itself needs to live at a different URL then you may be able to achieve this with a URL provider.
https://24days.in/umbraco-cms/2014/urlprovider-and-contentfinder/
Many thanks, David
is working on a reply...