Merge pull request #1854 from summerswallow-whi/extra_handler

Add custom handlers and allow setting of defaults
This commit is contained in:
Min RK
2018-05-15 08:55:15 +01:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -428,6 +428,8 @@ class BaseHandler(RequestHandler):
self.log.warning("Redirecting %s to %s. For sharing public links, use /user-redirect/",
self.request.uri, next_url,
)
if not next_url and self.config.JupyterHub.get('default_url'):
next_url = self.config.JupyterHub['default_url']
if not next_url:
# default URL after login