mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 04:53:01 +00:00
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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user