Skip to content

fix(doc): fall back to en-US redirect for unredirected locale URLs#618

Draft
caugner wants to merge 2 commits intomainfrom
fallback-to-en-US-redirect
Draft

fix(doc): fall back to en-US redirect for unredirected locale URLs#618
caugner wants to merge 2 commits intomainfrom
fallback-to-en-US-redirect

Conversation

@caugner
Copy link
Copy Markdown
Contributor

@caugner caugner commented Apr 9, 2026

Description

Update the redirect resolution logic, falling back to en-US redirects when a page neither exists nor has a redirect in the current locale.

Motivation

Fix broken links, and allow fix-flaws to automatically fix those.

Additional details

A page moved in en-US won't get a locale redirect for locales where it was never translated, breaking any references to that slug.

We now fall back to the en-US redirect to resolve such URLs.

Related issues and pull requests

Part of mdn/fred#1462.

caugner added 2 commits April 9, 2026 16:04
A page moved in en-US won't get a locale redirect for locales where
it was never translated, breaking any references to that slug.

We now fall back to the en-US redirect to resolve such URLs.
@caugner caugner requested a review from a team as a code owner April 9, 2026 14:10
@caugner caugner requested a review from LeoMcA April 9, 2026 14:10
@caugner caugner marked this pull request as draft April 9, 2026 14:11
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

49c0f18 was deployed to: https://rari-pr618.review.mdn.allizom.net/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants