-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URLs without locales do not do correct locale fallback #11717
Comments
@DonalMe Overall, this seems to work as intended: https://developer.mozilla.org/docs/Web/API/WebCodecs_API redirects to https://developer.mozilla.org/fr/docs/Web/API/WebCodecs_API, because this is the first locale in the Do you expect to be redirected to |
@caugner sorry, I didn't realize this behavior was because the page wasn't localized. |
IMO, MDN should go through all the accept-lang fallback locales through content negociation (https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation#the_accept-language_header) |
Thank you for this suggestion, it does make sense to me do content negociation, rather than redirecting to the first locale in the list of accepted languages that we support. We will discuss this in the team, and prioritize accordingly. Note that #11518 will not fix this. |
FWIW The link is here.
(Meanwhile, the |
Summary
We do not include a local in the MDN URLs in the Firefox release notes. The goal is for users in non-en locales following links in the release notes to be correctly redirected to their locale.
This is not working for MDN URLs and leads to a 404 in non-English locales.
URL
Example: https://developer.mozilla.org/docs/Web/API/WebCodecs_API
Reproduction steps
Expected behavior
There should be a redirect to your locale (example https://developer.mozilla.org/fr/docs/Web/API/WebCodecs_API)
Actual behavior
404 page
Device
Desktop
Browser
Firefox
Browser version
Stable
Operating system
Mac OS
Screenshot
No response
Anything else?
curl --header "Accept-Language: fr,fr-fr,en-us,en" -LIs https://developer.mozilla.org/docs/Web/API/WebCodecs_API | grep HTTP
Validations
The text was updated successfully, but these errors were encountered: