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:
Min RK
2016-03-09 09:30:50 +01:00
parent c6c699ea89
commit 922956def2
4 changed files with 5 additions and 8 deletions

View File

@@ -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