mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-08 02:24:08 +00:00
Merge pull request #1143 from minrk/spawn-next-url
Don’t redirect back to home from spawn
This commit is contained in:
@@ -67,13 +67,9 @@ class HomeHandler(BaseHandler):
|
||||
if user.running:
|
||||
# trigger poll_and_notify event in case of a server that died
|
||||
yield user.spawner.poll_and_notify()
|
||||
url = user.url
|
||||
else:
|
||||
url = url_concat(url_path_join(self.base_url, 'spawn'),
|
||||
{'next': self.request.uri})
|
||||
html = self.render_template('home.html',
|
||||
user=user,
|
||||
url=url,
|
||||
url=user.url,
|
||||
)
|
||||
self.finish(html)
|
||||
|
||||
|
Reference in New Issue
Block a user