Teach FormSpawner to handle query next=/path/to/landing

* before, if /user-redirect/ was used, or if ?next=/path/
  and there was a FormSpawner, the query param would be lost
This commit is contained in:
Mike Gevaert
2017-03-17 14:00:14 +01:00
parent 6078b8d9e5
commit 21af37a7a3
5 changed files with 24 additions and 10 deletions

View File

@@ -529,7 +529,8 @@ class UserSpawnHandler(BaseHandler):
status = yield current_user.spawner.poll()
if status is not None:
if current_user.spawner.options_form:
self.redirect(url_path_join(self.hub.server.base_url, 'spawn'))
self.redirect(url_concat(url_path_join(self.hub.server.base_url, 'spawn'),
{'next': self.request.uri}))
return
else:
yield self.spawn_single_user(current_user)