From 0221a7fbeb458b80dc5c881972c240d774c2cde0 Mon Sep 17 00:00:00 2001 From: tfhddd <2272751277@qq.com> Date: Tue, 30 Dec 2025 16:16:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=9E=E8=B0=83=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E5=A6=82=E6=9E=9C=E5=B8=A6=E6=9C=89/en,=E5=88=99=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E5=90=8E=E8=B0=83=E8=BD=AC=E5=88=B0=E8=8B=B1=E6=96=87?= =?UTF-8?q?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat: 回调地址如果带有/en,则登录后调转到英文界面 --- oauthproxy.go | 3 +++ 1 file changed, 3 insertions(+) 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),