mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Remove / from route of TreeRedirectHandler.
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.
This commit is contained in:
parent
96832f6aca
commit
c695ba45bc
@ -97,5 +97,5 @@ default_handlers = [
|
||||
(r"/tree%s" % notebook_path_regex, TreeHandler),
|
||||
(r"/tree%s" % path_regex, TreeHandler),
|
||||
(r"/tree", TreeHandler),
|
||||
(r"/", TreeRedirectHandler),
|
||||
(r"", TreeRedirectHandler),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user