Try our conversational search powered by Generative AI!

Cannot switch language on sites tab

Vote:
 

Hello,

Trying to switch language from sites tab it redirect me to wrong url

"https://xxxxx/cms/CMS/?language=en&language=en#context=epi.cms.contentdata:///5780&viewsetting=viewlanguage:///en,en"

If I remove "&language=en" it work normally. 

Does anyone know how to fix this? Thanks.

#175499
Edited, Feb 22, 2017 8:05
Vote:
 

The language switcher was a bit buggy in earlier versions of Episerver 7. What Episerver version are you using?

#175505
Feb 22, 2017 10:38
Vote:
 

Im using Episerver 9.7.2

#175506
Feb 22, 2017 10:45
Vote:
 

Are you using the Rewrite-module in IIS for your EpiServer?

We had the same problem, and the reason was a misconfiguration in our rewrite-rule in IIS that redirected all traffic to use HTTPS.

Our rule had the following redirect-action:

<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" />

We changed it to:

<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />

This stopped the server from adding the same querystring twice and solved the problem with switching languages in EpiServer.

#175811
Edited, Mar 02, 2017 16:56
* 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.