mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-08 18:44:10 +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:
|
if user.running:
|
||||||
# trigger poll_and_notify event in case of a server that died
|
# trigger poll_and_notify event in case of a server that died
|
||||||
yield user.spawner.poll_and_notify()
|
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',
|
html = self.render_template('home.html',
|
||||||
user=user,
|
user=user,
|
||||||
url=url,
|
url=user.url,
|
||||||
)
|
)
|
||||||
self.finish(html)
|
self.finish(html)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user