Changes between Initial Version and Version 1 of Ticket #28070
- Timestamp:
- Apr 12, 2017, 2:29:37 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28070 – Description
initial v1 8 8 What this means is that if language selection is made from a language-neutral URL (say /about/), selecting english as language the redirection in set_language will land the user to /en/about. 9 9 10 If - however - a new language selection (say de) is now made from /en/about/, the landing spot will be (again) /en/about, rather than the expected /de/about; the new languageis now, however, memorised in the user's session.10 If - however - a new language selection (say de) is now made from /en/about/, the landing spot will be (again) /en/about, rather than the expected **/de/about**. The new language (de) is now, however, memorised in the user's session. 11 11 12 12 **What should happen:** 13 Invoking set_language from a language prefixed page with an empty nextparameter should redirect to the language-neutral URL, allowing the session based url selection to kick in.13 Invoking set_language from a language prefixed page with an empty ''next'' parameter should redirect to the language-neutral URL, allowing the session based url selection to kick in. 14 14 15 15 **What would help:** 16 16 17 Of course, being able to reference the current language-neutral url as the next parameter to set_language would achieve the result. However, language-neutral urls aren't availble in templates (or anywhere I looked); so one's best hope is writing a custom template filter that strips the language prefix from a URL and hen use the stripped request.path o request.get_fulL_path as the nextparameter to the POST.17 Of course, being able to reference the current language-neutral url as the ''next'' parameter to set_language would achieve the result. However, language-neutral urls aren't availble in templates (or anywhere I looked); so one's best hope is writing a custom template filter that strips the language prefix from a URL and hen use the stripped request.path (or request.get_fulL_path) as the ''next'' parameter to the POST.