Skip to content

URLs without locales do not do correct locale fallback #11717

Open
@DonalMe

Description

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

  1. Browse in a non-en locale
  2. Navigate to a MDN URL without a locale (example https://developer.mozilla.org/docs/Web/API/WebCodecs_API)

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

Metadata

Assignees

No one assigned

    Labels

    enhancementImproves an existing feature.idleinvolves: ProductRequires the attention of the Product team.localizationi18n & l10np3We don't have visibility when this will be addressed.redirectsall things related to redirecting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions