summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--stream/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/views.py b/stream/views.py
index 78c5569..a08e09b 100644
--- a/stream/views.py
+++ b/stream/views.py
@@ -15,6 +15,7 @@
import time
import datetime
+from urlparse import urljoin
from django.conf import settings
from django.core import urlresolvers
from django.http import HttpResponse
@@ -329,7 +330,7 @@ def index(request, **args):
gls_link = entries[0].gls_link
if gls_link != request.path:
return HttpResponsePermanentRedirect(gls_link)
- page['canonical_link'] = '%s%s' % (settings.BASE_URL, gls_link)
+ page['canonical_link'] = urljoin(settings.BASE_URL, gls_link)
else:
raise Http404

Return to:

Send suggestions and report system problems to the System administrator.