From 5018ae1b29ef6d4a719bd5e25488723ee28a7dbd Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 8 Oct 2026 03:26:34 +0800 Subject: [PATCH] fix: correct websocket notification for change password page (#39671) (#39670) * Backport #39671 * Fix #39669 And also fix a UI bug --- routers/web/web.go | 1 - templates/base/head_navbar.tmpl | 4 ++-- templates/base/head_navbar_icons.tmpl | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/routers/web/web.go b/routers/web/web.go index 1ef407c3b98..84b4227ccfc 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -197,7 +197,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 65816badcca..5bceda34840 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -44,8 +44,8 @@