summaryrefslogtreecommitdiffabout
authorWojciech Polak <polak@gnu.org>2013-04-18 16:01:38 (GMT)
committer Wojciech Polak <polak@gnu.org>2013-04-18 16:01:38 (GMT)
commit814533bed4e6b8e6e274f6d8c2cf21ec33ba2cd1 (patch) (unidiff)
treefcc823796211a7672445931b84d3181a05ebf355
parent73eb07dbd4fe124cad62335eabcbe748fe9052e5 (diff)
downloadglifestream-814533bed4e6b8e6e274f6d8c2cf21ec33ba2cd1.tar.gz
glifestream-814533bed4e6b8e6e274f6d8c2cf21ec33ba2cd1.tar.bz2
Bugfix
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 @@
15 15
16import time 16import time
17import datetime 17import datetime
18from urlparse import urljoin
18from django.conf import settings 19from django.conf import settings
19from django.core import urlresolvers 20from django.core import urlresolvers
20from django.http import HttpResponse 21from django.http import HttpResponse
@@ -329,7 +330,7 @@ def index(request, **args):
329 gls_link = entries[0].gls_link 330 gls_link = entries[0].gls_link
330 if gls_link != request.path: 331 if gls_link != request.path:
331 return HttpResponsePermanentRedirect(gls_link) 332 return HttpResponsePermanentRedirect(gls_link)
332 page['canonical_link'] = '%s%s' % (settings.BASE_URL, gls_link) 333 page['canonical_link'] = urljoin(settings.BASE_URL, gls_link)
333 else: 334 else:
334 raise Http404 335 raise Http404
335 336

Return to:

Send suggestions and report system problems to the System administrator.