Fix double redirect if there is a route-prefix (#3091)

This commit is contained in:
maximecharron 2017-08-19 14:44:15 -04:00 committed by Julius Volz
parent a52f082939
commit 41884f0283

View file

@ -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)))