mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 14:33:00 +00:00
add missing trailing slash in / -> /hub/ redirect
This commit is contained in:
@@ -1068,6 +1068,10 @@ class PrefixRedirectHandler(BaseHandler):
|
||||
path = self.request.uri[len(self.base_url):]
|
||||
else:
|
||||
path = self.request.path
|
||||
if not path:
|
||||
# default / -> /hub/ redirect
|
||||
# avoiding extra hop through /hub
|
||||
path = '/'
|
||||
self.redirect(url_path_join(
|
||||
self.hub.base_url, path,
|
||||
), permanent=False)
|
||||
|
Reference in New Issue
Block a user