mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 10:04:07 +00:00
redirect root to /hub/login instead of authenticator.login_url
/hub/login always renders a page, whereas `authenticator.login_url` may automatically log the user in via redirects, causing logout to appear not to work, as redirects immediately cause login again.
This commit is contained in:
@@ -52,7 +52,7 @@ class RootHandler(BaseHandler):
|
||||
url = url_path_join(self.hub.server.base_url, 'home')
|
||||
self.log.debug("User is not running: %s", url)
|
||||
else:
|
||||
url = self.authenticator.login_url(self.base_url)
|
||||
url = url_path_join(self.hub.server.base_url, 'login')
|
||||
self.redirect(url)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user