divio/django-cms — pull request #1310 by tremmert (2012-06-17 21:15:52+00:00)
Title: Fixes wrong language prefix handling for form actions and admin preview (issue #1304)

This would fix the django-cms issue #1304 (https://github.com/divio/django-cms/issues/1304) that I raised today.

Background: when CMS is configured not to be at root level but at a sub site .. e.g. /content, then the multilingual url prefixes are generated correctly for HREFs, resulting in /en/content/otherpath

BUT all FORM urls end up /content/en/otherpath , and the same applies to the preview URLs in the admin, which causes 404s

This change fixes that, making sure all urls end up constantly as /en/content/otherpath...