Page MenuHomePhabricator

Special:MyLanguage/Page/fr should fallback to Page/fr rather than Page for logged-out users
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue:

What happens?:
Since your user interface is English, you are redirected to https://foundation.wikimedia.org/wiki/Policy:Terms_of_Use

What should have happened instead?:
Since English as UI language is not expected by user (T5665, T58464), you should be redirected to https://foundation.wikimedia.org/wiki/Policy:Terms_of_Use/fr
I.e. for anonymous user, we should skip the user interface language detection in the lookup chain <user lang> -> <explicit lang> -> <fallback lang(s)> -> <base> (rMWb8332e99160f)

Other information:
Workarround: https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use/fr?uselang=random_string

Event Timeline

Expected lookup order

If the user can choose UI language

For final display: <user lang> -> <explicit lang> -> <fallback lang(s)> -> <base>
For transclusion: <user lang> -> <explicit lang> -> <fallback lang(s)> -> <base lang> -> <base>

(The missing use case for <base lang> was reported on T309329#8031966)

Else (the user cannot chose UI language)

For final display: <explicit lang> -> <base>
For transclusion: <explicit lang> -> <base lang> -> <base>

Change 987211 had a related patch set uploaded (by Pols12; author: Pols12):

[mediawiki/core@master] SpecialMyLanguage: skip UI lang for anons

https://gerrit.wikimedia.org/r/987211