mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-08 02:24:08 +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')
|
url = url_path_join(self.hub.server.base_url, 'home')
|
||||||
self.log.debug("User is not running: %s", url)
|
self.log.debug("User is not running: %s", url)
|
||||||
else:
|
else:
|
||||||
url = self.authenticator.login_url(self.base_url)
|
url = url_path_join(self.hub.server.base_url, 'login')
|
||||||
self.redirect(url)
|
self.redirect(url)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user