Pass in base_url rather than app object

- Limits what we consider public API
- Still allows for redirects outside JupyterHub
This commit is contained in:
YuviPanda
2019-10-24 09:01:23 -07:00
parent d66f0635a3
commit 9d5784efb9
3 changed files with 6 additions and 5 deletions

View File

@@ -1490,7 +1490,7 @@ class UserRedirectHandler(BaseHandler):
if self.app.user_redirect_hook:
url = await maybe_future(
self.app.user_redirect_hook(
path, self.request, self.current_user, self.app
path, self.request, self.current_user, self.base_url
)
)
if url is None: