From: Radek Czajka Date: Sun, 25 Sep 2011 18:20:27 +0000 (+0200) Subject: static links fix in opds X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/681be17b1c53f4b15838b3c4a53b0b01ee0a86e5?ds=sidebyside;hp=-c static links fix in opds --- 681be17b1c53f4b15838b3c4a53b0b01ee0a86e5 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):