mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
Merge pull request #500 from yuvipanda/fix-url-encoding-4
Use User.url instead of constructing it manually
This commit is contained in:
@@ -492,8 +492,7 @@ class UserSpawnHandler(BaseHandler):
|
||||
self.redirect(target)
|
||||
elif current_user:
|
||||
# logged in as a different user, redirect
|
||||
target = url_path_join(self.base_url, 'user', current_user.name,
|
||||
user_path or '')
|
||||
target = url_path_join(current_user.url, user_path or '')
|
||||
self.redirect(target)
|
||||
else:
|
||||
# not logged in, clear any cookies and reload
|
||||
|
Reference in New Issue
Block a user