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

Redirects incorrectly handled with subfolders. #85

Open
zauberparacelsus opened this issue Aug 9, 2015 · 0 comments
Open

Redirects incorrectly handled with subfolders. #85

zauberparacelsus opened this issue Aug 9, 2015 · 0 comments

Comments

@zauberparacelsus
Copy link

There appears to be a problem with how the flask-debugtoolbar follows redirects, when the redirect goes into a subdirectory. For example, with the flask system I wrote to run the site for my webcomic:

I click the link http://localhost:5000/content/main/latest and it takes me to the redirect debug page as expected. Clicking the link to follow the redirect's destination should be http://localhost:5000/content/main/51 but it instead takes me to http://localhost:5000/content/main/content/main/52

I'll repeat those links one after another with the domain and port number chopped off, to better illustrate the difference:

Right Link: /content/main/51
Wrong Link: /content/main/content/main/51

With the wrong link, the /content/main subdirectory path is doubled, which in turn leads to a 404.

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

No branches or pull requests

1 participant