diff --git a/internal/auth/auth.go b/internal/auth/auth.go index dbaf271a..15b65322 100644 --- a/internal/auth/auth.go +++ b/internal/auth/auth.go @@ -244,9 +244,10 @@ func (auth *Authentication) Login( if r.FormValue("redirect") != "" { http.RedirectHandler(r.FormValue("redirect"), http.StatusFound).ServeHTTP(rw, r.WithContext(ctx)) - } else { - http.RedirectHandler(r.FormValue("/"), http.StatusFound).ServeHTTP(rw, r.WithContext(ctx)) + return } + + http.RedirectHandler("/", http.StatusFound).ServeHTTP(rw, r.WithContext(ctx)) return }