mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
Fix double redirect if there is a route-prefix (#3091)
This commit is contained in:
parent
a52f082939
commit
41884f0283
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue