Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > ?lang parameter View modes: 
User avatar
Member
Member
Yehuda - 5/25/2010 11:56:18 AM
   
?lang parameter
Hello,

I just upgraded to 5.5 from 4.1.
The site I'm working on has two languages, English and Hebrew.
I used to switch page language with the ?lang query string parameter,
but now two of my pages will only show in Hebrew even when I add ?lang=en-US to the url. The other pages switch normally.

Is there anything that can affect the behvior of this parameter?

Thanks, Yehuda

User avatar
Member
Member
jao - 5/26/2010 12:22:59 PM
   
RE:?lang parameter
I experience the same error. it seems kentico ignores the lang parameter.

User avatar
Member
Member
Yehuda - 5/26/2010 12:48:00 PM
   
RE:?lang parameter
What I did to fix it is make sure that in the URL properties I have "Use custom URL path" checked and that "Document URL path" is empty.

User avatar
Member
Member
jao - 5/26/2010 4:41:54 PM
   
RE:?lang parameter
I think my problem has something to do with the cookie not getting set properly, because it doesn't change.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 6/9/2010 1:00:48 PM
   
RE:?lang parameter
Hello.

This problem can occur if Document alias (NodeAliasPath) is not different from the DocumentURLPath of the original document. In that case system does loop up to another language version. Therefore solution in this case is using document alias different from the document URL path. I'm sorry for inconvenience.

Anyway there is already requirement to improve this behavior in this particular scenario.

Best Regards,
Radek Macalik