Page not found with fallback notecard doesn't present language switcher #10784
Labels
idle
involves: UX
Requires the attention of the UX team.
localization
i18n & l10n
p3
We don't have visibility when this will be addressed.
Summary
If you visit a page with no locale in the URL and have a language preference set (through browser or OS settings), we will 404 the page even though there may be an EN equivalent.
The 404 notecard with a fallback doesn't offer to change languages and persist this preference for future visits.
URL
https://developer.mozilla.org/docs/Mozilla/Firefox/Releases/124
Reproduction steps
Expected behavior
The notecard with a fallback URL also includes a language switcher to set
preferredlocale
for site-wide preferences.Actual behavior
Visiting the https://developer.mozilla.org/docs/Mozilla/Firefox/Releases/124 page will make us land on the FR version with no option to persist language preference.
Additionally, the destination URL (an
en-US
fallback) exists, but there is no translated version, so we do not offer the language switcher to set future preferences when the visitor lands there.Device
Desktop
Browser
Firefox
Browser version
Stable
Operating system
Mac OS
Screenshot
No response
Anything else?
Request headers to send back
fr
equivalent looks likeAccept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
yari/client/src/page-not-found/fallback-link.tsx
Lines 95 to 112 in 6e6ed78
Validations
The text was updated successfully, but these errors were encountered: