Vulnerability in EPiServer.Forms
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...
Did you ever fidn an answer to this? Just ran into this problem on CMS 6 R2.
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.
Makes sense, thanks for clarifying!