FS#12 - Keep in current language even when redirected to default language
Opened by Strict Standards: array_map() expects parameter 1 to be a valid callback, non-static method Filters::noXSS() should not be called statically in /data/web/a5/4e/8e/bugs.anwiki.com/htdocs/includes/class.tpl.php on line 281 anw (anw) - Strict Standards: Non-static method Filters::noXSS() should not be called statically in /data/web/a5/4e/8e/bugs.anwiki.com/htdocs/includes/class.tpl.php on line 613 Wednesday, 17 September 2008, 18:36 GMT
To reproduce the problem:
1. Display a page in some language, in this example: Polish
2. Click on a link, leading to a page which is not translated in current language (Polish)
3. The page is displayed in default language (in this example: English), which is the correct behavior
4. Click on another link which is available in the preferred language (Polish), you will stay in default language (English) instead of being redirected back to preferred language (Polish).
After redirecting people to the default language, when content is not available in preferred language, we should redirect again people to his preferred language as soon as a content is available in this language.