Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web: fix double prefix redirect #2832

Merged
merged 1 commit into from
Jun 12, 2017
Merged

Conversation

brancz
Copy link
Member

@brancz brancz commented Jun 10, 2017

Fixes #2825 and #2817.

The problem was that when using the .Redirect method of the router after is has been prefixed, it will use the route prefix and external url path joined with the graph path, ending up with being redirected to /prometheus/prometheus/graph, when -web.external-url is set to a URL with /prometheus as the path and no -web.route-prefix (which makes it default to the same path).

The bug was previously introduced by #2755.

@brian-brazil @fabxc @grobie

@fabxc
Copy link
Contributor

fabxc commented Jun 12, 2017

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redirect fix breaks redirect
2 participants