<a href> links being rewritten behind the scenes

Vote:
 

We have the language after our domain such as adress.com/se, adress.com/dk 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 :)

#65297
Jan 25, 2013 9:04
Vote:
 

Hi,


In siteSettings (EPiServer.config) you can set the url rebase kind to urlRebaseKind="ToRootRelative". http://sdk.episerver.com/library/cms5/html/P_EPiServer_Configuration_Settings_UrlRebaseKind.htm

#65301
Jan 25, 2013 10:37
Vote:
 

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

#65680
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.