include params in redirect from /spawn -> /user/:name

This commit is contained in:
Min RK
2018-09-03 09:57:00 +02:00
parent dcae92ce4a
commit 9d4c410996

View File

@@ -111,7 +111,11 @@ class SpawnHandler(BaseHandler):
if user.spawner._spawn_future and user.spawner._spawn_future.done(): if user.spawner._spawn_future and user.spawner._spawn_future.done():
user.spawner._spawn_future = None user.spawner._spawn_future = None
# not running, no form. Trigger spawn by redirecting to /user/:name # not running, no form. Trigger spawn by redirecting to /user/:name
self.redirect(user.url) url = user.url
if self.request.query:
# add query params
url += '?' + self.request.query
self.redirect(url)
@web.authenticated @web.authenticated
async def post(self, for_user=None): async def post(self, for_user=None):