mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 23:13:00 +00:00
allow user.url to be accessed without the server running
Reduces the number of different ways we need to build the same URLs.
This commit is contained in:
@@ -75,10 +75,7 @@ class SpawnHandler(BaseHandler):
|
||||
self.finish(self._render_form())
|
||||
else:
|
||||
# not running, no form. Trigger spawn.
|
||||
# Creating the URL manually since the server does not
|
||||
# exist yet
|
||||
url = url_path_join(self.base_url, 'user', quote(user.name))
|
||||
self.redirect(url)
|
||||
self.redirect(user.url)
|
||||
|
||||
@web.authenticated
|
||||
@gen.coroutine
|
||||
|
Reference in New Issue
Block a user