diff --git a/server/login/login.go b/server/login/login.go index c524acc87d4acb470b544e853d7d5f4f3de38b04..050fe622fdfbdc79dbacb1b897ca93af53f75d07 100644 --- a/server/login/login.go +++ b/server/login/login.go @@ -187,7 +187,7 @@ func (l *Login) ServeHTTP(w http.ResponseWriter, req *http.Request) { } else if !session.Authenticated { // Save the current URL in the session for later redirect. session.Redir = req.URL.String() - http.Redirect(w, req, "/login", http.StatusFound) + http.Redirect(w, req, l.urlFor("/login"), http.StatusFound) return }