From 681be17b1c53f4b15838b3c4a53b0b01ee0a86e5 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Sun, 25 Sep 2011 20:20:27 +0200 Subject: [PATCH] static links fix in opds --- apps/opds/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/opds/views.py b/apps/opds/views.py index 7ee09be7c..9431684b3 100644 --- a/apps/opds/views.py +++ b/apps/opds/views.py @@ -4,6 +4,7 @@ # from base64 import b64encode import os.path +from urlparse import urljoin from django.contrib.syndication.views import Feed from django.core.urlresolvers import reverse @@ -58,7 +59,7 @@ _root_feeds = ( def full_url(url): - return "http://%s%s" % (Site.objects.get_current().domain, url) + return urljoin("http://%s" % Site.objects.get_current().domain, url) class OPDSFeed(Atom1Feed): -- 2.20.1