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:
Adam Hodgen 2014-07-11 20:48:42 +01:00
parent 96832f6aca
commit c695ba45bc

View File

@ -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),
]