From 41884f02839d15d3d192f9a2017da5e977dadb8b Mon Sep 17 00:00:00 2001 From: maximecharron Date: Sat, 19 Aug 2017 14:44:15 -0400 Subject: [PATCH] Fix double redirect if there is a route-prefix (#3091) --- web/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/web.go b/web/web.go index f37dfa9586..9b21236c34 100644 --- a/web/web.go +++ b/web/web.go @@ -185,7 +185,7 @@ func New(o *Options) *Handler { readyf := h.testReady router.Get("/", func(w http.ResponseWriter, r *http.Request) { - router.Redirect(w, r, path.Join(o.ExternalURL.Path, "/graph"), http.StatusFound) + http.Redirect(w, r, path.Join(o.ExternalURL.Path, "/graph"), http.StatusFound) }) router.Get("/alerts", readyf(instrf("alerts", h.alerts)))