Fix UI loading redirections. Should fix #906
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ func (a *Server) initRoutes() {
|
||||
r.Use(requestLogger)
|
||||
r.Use(robotsTXT(ui.Assets()))
|
||||
|
||||
indexHtml := path.Join(conf.Server.BaseURL, consts.URLPathUI, "index.html")
|
||||
indexHtml := path.Join(conf.Server.BaseURL, consts.URLPathUI)
|
||||
r.Get("/*", func(w http.ResponseWriter, r *http.Request) {
|
||||
http.Redirect(w, r, indexHtml, 302)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user