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

change webui action response to use referring url instead of server url for location header #28

Closed
wants to merge 1 commit into from

Conversation

jboutros
Copy link

If the supervisor web ui is deployed at a subdirectory (instead of a virtual host), the user is redirected to the wrong url when an action response is received. The location header requires an absolute url, and the HTTP_HOST was being used to construct this url. Using referring url instead (after dropping the query part of the url) ensures that the user is redirected to the appropriate page.

@mnaberez mnaberez closed this Jul 15, 2011
@mnaberez mnaberez reopened this Jul 15, 2011
@mnaberez
Copy link
Member

Thanks for this patch but we shouldn't depend on the referrer in this way. It may not be sent by the browser. However, we should have a solution for this. I've created a new issue #29 for it.

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

Successfully merging this pull request may close these issues.

None yet

2 participants