Try our conversational search powered by Generative AI!

<a href> links being rewritten behind the scenes


We have the language after our domain such as, etc.

Whenever we load a page all of our href's is being set as "../link" instead of "/link" thus being relative to the root 

instead of the language. We're under the suspicion this is epi's doing behind the scenes.


Whenever we get the same links and use the same logic to set them with Ajax calls(no page reload) the links work just fine.

How to change this behavior?


TL:DR On page loads, <a href> links get ../ put infront of them, NOT WANTED BEHAVIOR :)

Jan 25, 2013 9:04


In siteSettings (EPiServer.config) you can set the url rebase kind to urlRebaseKind="ToRootRelative".

Jan 25, 2013 10:37

Seems to be a part of R2 so I only get errors when I try to get it in.


Solved it by changing some of the flawed logic we had in place unrelated to episerver

Edited, Feb 05, 2013 15:11
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.