minor bug fixes; improvements, final-beta-pre-stable

This commit is contained in:
Mukhtar Akere
2025-05-07 18:25:09 +01:00
parent 21354529e7
commit 0deb88e265
16 changed files with 151 additions and 258 deletions

View File

@@ -18,7 +18,7 @@ func (ui *Handler) setupMiddleware(next http.Handler) http.Handler {
// strip inco from URL
if inco := r.URL.Query().Get("inco"); inco != "" && needsAuth == nil && r.URL.Path == "/config" {
// redirect to the same URL without the inco parameter
http.Redirect(w, r, fmt.Sprintf("/config"), http.StatusSeeOther)
http.Redirect(w, r, "/config", http.StatusSeeOther)
}
next.ServeHTTP(w, r)
})