mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
proxy.py: Respect base_url in add_hub_route
This commit is contained in:
@@ -365,8 +365,8 @@ class Proxy(LoggingConfigurable):
|
||||
|
||||
def add_hub_route(self, hub):
|
||||
"""Add the default route for the Hub"""
|
||||
self.log.info("Adding default route for Hub: / => %s", hub.host)
|
||||
return self.add_route('/', self.hub.host, {'hub': True})
|
||||
self.log.info("Adding default route for Hub: %s => %s", hub.base_url[:-4], hub.host)
|
||||
return self.add_route(hub.base_url[:-4], self.hub.host, {'hub': True})
|
||||
|
||||
async def restore_routes(self):
|
||||
self.log.info("Setting up routes on new proxy")
|
||||
|
Reference in New Issue
Block a user