From c8fc7056324c14ad72fd9a12b7590db16c2731d5 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 8 Oct 2026 03:34:47 +0800 Subject: [PATCH] fix: correct change password page and redirection (#39671) Backport fix is #39670 --- routers/web/web.go | 1 - templates/base/head_navbar.tmpl | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/routers/web/web.go b/routers/web/web.go index 220c75d162b..b1dfec9aea7 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -200,7 +200,6 @@ func verifyAuthWithOptionsWeb(options *common.VerifyOptions) func(ctx *context.C ctx.HTTPError(http.StatusUnauthorized, ctx.Locale.TrString("auth.must_change_password")) return } - middleware.SetRedirectToCookie(ctx.Resp, setting.AppSubURL+ctx.Req.URL.RequestURI()) ctx.Redirect(setting.AppSubURL + "/user/settings/change_password") return } diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 9cdfb5efaef..3e9e171b777 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -39,8 +39,8 @@