Don't warn about empty next_url

empty next_url is fine
This commit is contained in:
Min RK
2016-12-09 15:34:32 +01:00
parent 7e1dbf3515
commit 732adea997

View File

@@ -28,7 +28,7 @@ class RootHandler(BaseHandler):
"""
def get(self):
next_url = self.get_argument('next', '')
if not next_url.startswith('/'):
if next_url and not next_url.startswith('/'):
self.log.warning("Disallowing redirect outside JupyterHub: %r", next_url)
next_url = ''
if next_url and next_url.startswith(url_path_join(self.base_url, 'user/')):