add missing trailing slash in / -> /hub/ redirect

This commit is contained in:
Min RK
2019-02-11 17:29:45 +01:00
parent 087dd0fcd2
commit dcdb8d8a89

View File

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