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

Remove / from route of TreeRedirectHandler. #6117

Merged
merged 1 commit into from Jul 11, 2014

Conversation

ant1441
Copy link

@ant1441 ant1441 commented Jul 11, 2014

When base_url is set, navigating to http://{url}/{base_url} returns 404

This is due to the TreeRedirectHandler only picking up http://{url}/{base_url}/ and the TrailingSlashHandler being set to {base_url}/.*/.

This change will cause http://{url}/{base_url} to correctly redirect to http://{url}/{base_url}/tree, as expected.

When base_url is not set, the TrailingSlashHandler will redirect http://{url}/ to http://{url}, so this will not affect that situation.

This issue affects 2.x and 3.x.

When base_url is set, navigating to http://{url}/{base_url} returns 404
This is due to the TreeRedirectHandler only picking up
http://{url}/{base_url}/ and the trailing slash handler being set to
{base_url}/.*/.

This change will cause http://{url}/{base_url} to correctly redirect to
http://{url}/{base_url}/tree, as expected.
@minrk minrk added this to the 2.2 milestone Jul 11, 2014
@minrk
Copy link
Member

minrk commented Jul 11, 2014

Thanks!

minrk added a commit that referenced this pull request Jul 11, 2014
Remove / from route of TreeRedirectHandler.
@minrk minrk merged commit e8d1c5a into ipython:master Jul 11, 2014
minrk added a commit that referenced this pull request Jul 24, 2014
When base_url is set, navigating to http://{url}/{base_url} returns 404

This is due to the TreeRedirectHandler only picking up http://{url}/{base_url}/ and the TrailingSlashHandler being set to {base_url}/.*/.

This change will cause http://{url}/{base_url} to correctly redirect to http://{url}/{base_url}/tree, as expected.
...
minrk added a commit to minrk/ipython that referenced this pull request Aug 18, 2014
before ipython#6117, only `/base_url/` worked,
after ipython#6117, only `/base_url worked,
after this PR, both should work.
minrk added a commit that referenced this pull request Aug 18, 2014
- before #6117, only `/base_url/` worked
- after #6117, only `/base_url` worked
- after this PR, both should work.

closes #6329
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Remove / from route of TreeRedirectHandler.
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
before ipython#6117, only `/base_url/` worked,
after ipython#6117, only `/base_url worked,
after this PR, both should work.
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.

None yet

2 participants