Skip to content

Commit

Permalink
fixes django-cms#258 if a redirect is not absolute the langauge prefi…
Browse files Browse the repository at this point in the history
…x is not appended
  • Loading branch information
Patrick Lauber committed Nov 19, 2009
1 parent bd3f44e commit 095486e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/views.py
Expand Up @@ -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)
Expand Down

0 comments on commit 095486e

Please sign in to comment.