From 52f65ca735fc480f4c57550917452d87aff8ac3b Mon Sep 17 00:00:00 2001 From: echel0n Date: Wed, 9 Jul 2014 13:50:46 -0700 Subject: [PATCH] Testing yet another possible fix for web_root --- sickbeard/webserve.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 063201b7..01fdbe52 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -132,7 +132,8 @@ class HTTPRedirect(Exception): """Exception raised when the request should be redirected.""" def __init__(self, url, permanent=False, status=None): - self.url = urlparse.urljoin(sickbeard.WEB_ROOT, url) + self.web_root = ('/' + sickbeard.WEB_ROOT.lstrip('/')) if sickbeard.WEB_ROOT else '' + self.url = urlparse.urljoin(self.web_root, url) self.permanent = permanent self.status = status Exception.__init__(self, self.url, self.permanent, self.status)