From f4c7e87fc9c9ff0659a33affc0136b38da30e0aa Mon Sep 17 00:00:00 2001 From: xdch47 <34678034+xdch47@users.noreply.github.com> Date: Sun, 17 Feb 2019 13:51:37 +0100 Subject: [PATCH] modules/context/auth.go: fix redirect loop (#5965) (#6101) Closes #5815 --- modules/context/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/context/auth.go b/modules/context/auth.go index 110122cb6..5bc34b55a 100644 --- a/modules/context/auth.go +++ b/modules/context/auth.go @@ -42,7 +42,7 @@ func Toggle(options *ToggleOptions) macaron.Handler { // prevent infinite redirection // also make sure that the form cannot be accessed by // users who don't need this - if ctx.Req.URL.Path == setting.AppSubURL+"/user/settings/change_password" { + if ctx.Req.URL.Path == "/user/settings/change_password" { if !ctx.User.MustChangePassword { ctx.Redirect(setting.AppSubURL + "/") }