Permalink
Browse files

fixes #258 if a redirect is not absolute the langauge prefix is not a…

…ppended
  • Loading branch information...
1 parent bd3f44e commit 095486e942cf4fb59170e1cce5950d0f6e8100bc @digi604 digi604 committed Nov 19, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 cms/views.py
View
@@ -104,7 +104,7 @@ def details(request, page_id=None, slug=None, template_name=settings.CMS_TEMPLAT
redirect_url = current_page.get_redirect(language=lang)
if redirect_url:
- if settings.i18n_installed:
+ if settings.i18n_installed and redirect_url[0] == "/":
redirect_url = "/%s/%s" % (lang, redirect_url.lstrip("/"))
# add language prefix to url
return HttpResponseRedirect(redirect_url)

0 comments on commit 095486e

Please sign in to comment.