Commit 9220c57f authored by ale's avatar ale

Added missing URL prefix to the unauthenticated redirect to login

parent 61369670
Pipeline #5397 passed with stages
in 2 minutes and 58 seconds
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment