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

@@ -186,10 +186,10 @@ class User(HasTraits):
if self.settings.get('subdomain_host'):
return '{host}{path}'.format(
host=self.host,
path=self.server.base_url,
path=self.base_url,
)
else:
return self.server.base_url
return self.base_url
@gen.coroutine
def spawn(self, options=None):