AI OnAI Off
The language switcher was a bit buggy in earlier versions of Episerver 7. What Episerver version are you using?
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.
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.