Browse Source

web: fix double prefix

pull/2832/head
Frederic Branczyk 8 years ago
parent
commit
9063f8dedd
No known key found for this signature in database
GPG Key ID: CA14788B1E48B256
  1. 2
      web/web.go

2
web/web.go

@ -171,7 +171,7 @@ func New(o *Options) *Handler {
instrf := prometheus.InstrumentHandlerFunc instrf := prometheus.InstrumentHandlerFunc
router.Get("/", func(w http.ResponseWriter, r *http.Request) { 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)) router.Get("/alerts", instrf("alerts", h.alerts))

Loading…
Cancel
Save