divio/django-cms — Issue #1087: Language chooser cannot switch language for untranslated page
Author: Bouke
Created: 2011-11-05 19:06:51+00:00
State: open

Language chooser uses page_language_url from menus.templatetags. The final except solution for this template tag is to provide no URL if no translation could be found. For untranslated django-cms pages, this blocks a visitor from switching his language. I would rather redirect those users to the translated homepage then to block them from switching.

The bug arises from [here](https://github.com/divio/django-cms/blob/develop/menus/templatetags/menu_tags.py#L375). I created a temporary workaround by changing that line to this:

# no localized path/slug.
url = "/" + lang + "/"