fix(webui): display user accounts menu entry to admin even on error pages
This commit is contained in:
parent
7a3bf725b0
commit
7abe963bfd
10 changed files with 33 additions and 33 deletions
|
@ -28,7 +28,7 @@ func handleIndexGET() http.Handler {
|
|||
if r.URL.Path == "/" {
|
||||
http.Redirect(w, r, "/states", http.StatusFound)
|
||||
} else {
|
||||
errorResponse(w, http.StatusNotFound, fmt.Errorf("Page not found"))
|
||||
errorResponse(w, r, http.StatusNotFound, fmt.Errorf("Page not found"))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue