Fix double redirect if there is a route-prefix
@@ -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)))
