From 9da27b713066b25a86c3f883a6ea14f7ff77db60 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Thu, 27 Feb 2020 21:30:55 -0700 Subject: [PATCH] Set UseEncodedPath --- pkg/dashboard/ui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/dashboard/ui.go b/pkg/dashboard/ui.go index 807b97c7..1d0c2629 100644 --- a/pkg/dashboard/ui.go +++ b/pkg/dashboard/ui.go @@ -33,6 +33,7 @@ func Route(next http.Handler, uiSetting func() string) http.Handler { responsewriter.CacheMiddleware("json", "js", "css")).Handler(content(uiSetting)) root := mux.NewRouter() + root.UseEncodedPath() root.Path("/dashboard").HandlerFunc(func(rw http.ResponseWriter, req *http.Request) { rw.Header().Add("Location", "/dashboard/") rw.WriteHeader(http.StatusFound)