Skip to content

Commit

Permalink
Merge pull request prometheus#2832 from brancz/fix-redirect
Browse files Browse the repository at this point in the history
web: fix double prefix redirect
  • Loading branch information
fabxc authored Jun 12, 2017
2 parents bfa37c8 + 9063f8d commit f71d39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit f71d39a

Please sign in to comment.