From 3b6d0b3d15078d27fb9c16c1cb281e7094c4381d Mon Sep 17 00:00:00 2001 From: Deluan Date: Fri, 3 Apr 2020 19:45:35 -0400 Subject: [PATCH] Add a catchall route to redirect everything to app/index.html --- server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.go b/server/server.go index 6e3db91b7..1fe7f7a14 100644 --- a/server/server.go +++ b/server/server.go @@ -63,7 +63,7 @@ func (a *Server) initRoutes() { r.Use(InjectLogger) indexHtml := path.Join(conf.Server.BaseURL, consts.URLPathUI, "index.html") - r.Get("/", func(w http.ResponseWriter, r *http.Request) { + r.Get("/*", func(w http.ResponseWriter, r *http.Request) { http.Redirect(w, r, indexHtml, 302) })