Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ppended
  • Loading branch information...
commit 095486e942cf4fb59170e1cce5950d0f6e8100bc 1 parent bd3f44e
@digi604 digi604 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cms/views.py
View
2  cms/views.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.