X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/946b59a145b50ab62ab3eef03e60aad59babb53a..681be17b1c53f4b15838b3c4a53b0b01ee0a86e5:/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):