include protocol in subdomain_host

makes everything easier, and tests are passing with and without subdomains (yay!)
This commit is contained in:
Min RK
2016-02-26 17:52:31 +01:00
parent f922561003
commit 335b47d7c1
9 changed files with 25 additions and 15 deletions

View File

@@ -476,7 +476,7 @@ class UserSpawnHandler(BaseHandler):
without_prefix = self.request.uri[len(self.hub.server.base_url):]
target = url_path_join(self.base_url, without_prefix)
if self.use_subdomains:
target = '//' + current_user.host + target
target = current_user.host + target
self.redirect(target)
else:
# not logged in to the right user,