redirect to / after login

This commit is contained in:
Victor Vrantchan
2021-02-20 21:39:59 -05:00
parent 5202ca027d
commit b69f92e907

View File

@@ -407,7 +407,7 @@ func (srv *Server) authMW(next http.Handler) http.Handler {
if strings.HasPrefix(r.URL.Path, "/login") {
level.Debug(logger).Log("msg", "redirect session to dashboard page", "session_id", sess.ID)
http.Redirect(w, r, "/dashboard", http.StatusFound)
http.Redirect(w, r, "/", http.StatusFound)
return
}