X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/28de2870cc094e3b5cbcf7eea54d3a4b7736e450..46705d393ae76a1d8e0eb2dc8bf121269f6adb67:/apps/opds/views.py 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):