From 9063f8dedd0ebcae4832bac7b9b5417b10bf7e09 Mon Sep 17 00:00:00 2001 From: Frederic Branczyk Date: Sat, 10 Jun 2017 12:07:43 +0200 Subject: [PATCH] web: fix double prefix --- web/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/web.go b/web/web.go index 61398f064..eba79c451 100644 --- a/web/web.go +++ b/web/web.go @@ -171,7 +171,7 @@ func New(o *Options) *Handler { instrf := prometheus.InstrumentHandlerFunc 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", instrf("alerts", h.alerts))