diff --git a/oauthproxy.go b/oauthproxy.go index 9d9aba658e..d0bc20ca7a 100644 --- a/oauthproxy.go +++ b/oauthproxy.go @@ -724,6 +724,9 @@ func (p *OAuthProxy) OAuthStart(rw http.ResponseWriter, req *http.Request) { } callbackRedirect := p.getOAuthRedirectURI(req) + if strings.Contains(callbackRedirect, "/en/") { + appRedirect = "/en" + } loginURL := p.provider.GetLoginURL( callbackRedirect, encodeState(csrf.HashOAuthState(), appRedirect),