From 7bd1e387dfcc84ac78ebb142e739dd9709d6758c Mon Sep 17 00:00:00 2001 From: BerserkerTroll Date: Sun, 24 Jun 2018 17:22:43 +0300 Subject: [PATCH] proxy.py: Respect base_url in add_hub_route --- jupyterhub/proxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jupyterhub/proxy.py b/jupyterhub/proxy.py index 30abbb54..139c5d36 100644 --- a/jupyterhub/proxy.py +++ b/jupyterhub/proxy.py @@ -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")