Whats up with [PageData].LinkURL

Vote:
 

Havent noticed before but it seems like LinkURL property on a pagedata always returns with the language that is selected, and not the language that the page is on.

 If I stands in a english context and do GetPage(xxx,"no") I get a norwegian page. but the LinkURL property will point to the english page.

Is this by design or just a bug?, havent really noticed it before, but are working on a prosject with 20+ languages so have started to experince this behavior...

 

a

#28216
Feb 25, 2009 13:54
Vote:
 

Did you ever fidn an answer to this? Just ran into this problem on CMS 6 R2.

#58290
Apr 18, 2012 10:12
Vote:
 

It is actually by design. The reason for this behaviour is that since LinkURL is used when rendering links it will always follow ContentLanguage.PrefferdCulture, this is to avoid to get implicit context language switches for the site visitor.

There is a property StaticLinkURL that does not contain any language information which can be used togethter with LanguageBranch property to construct a URL that is to the same language as the page instance. 

#58316
Apr 19, 2012 10:16
Vote:
 

Makes sense, thanks for clarifying!

#58317
Apr 19, 2012 10:21
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.