aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/auth/password.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/auth/password.go')
-rw-r--r--routers/web/auth/password.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/auth/password.go b/routers/web/auth/password.go
index c9e0386041..3af8b7edf2 100644
--- a/routers/web/auth/password.go
+++ b/routers/web/auth/password.go
@@ -314,7 +314,7 @@ func MustChangePasswordPost(ctx *context.Context) {
if redirectTo := ctx.GetSiteCookie("redirect_to"); len(redirectTo) > 0 && !utils.IsExternalURL(redirectTo) {
middleware.DeleteRedirectToCookie(ctx.Resp)
- ctx.RedirectToFirst(redirectTo)
+ ctx.RedirectToCurrentSite(redirectTo)
return
}