Cannot switch language on sites tab



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


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

Does anyone know how to fix this? Thanks.

Edited, Feb 22, 2017 8:05

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

Feb 22, 2017 10:38

Im using Episerver 9.7.2

Feb 22, 2017 10:45

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.

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.