You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5602623
Browse filesBrowse the repository at this point in the historyBrowse files
fix(docs): point an untranslated locale URL at the English page it serves (#188)
Fixes#174
/ja/docs/operate/backup has no Japanese source. fumadocs falls back to the
default language and serves the English body, so the URL was a second copy of
the English page that declared itself canonical. #169 removed it from the
sitemap and every hreflang cluster, but "no longer advertised" is not "no
longer indexable" — the in-page language switcher links to it from every
translated page.
When translatedLocales(slugs) does not contain the current locale, every field
asserting where the content lives now names the English URL: alternates.canonical,
openGraph.url, TechArticle.url, and each BreadcrumbList item. Breadcrumb items
resolve crumb by crumb, because a translated page can sit under an untranslated
ancestor. og:locale and TechArticle.inLanguage follow the URL they sit beside —
a node naming the English URL while claiming inLanguage ja would assert the
English page is Japanese. alternates.languages, both share-card URLs and
html lang are untouched.
Verified against independent oracles: 218 of 553 docs routes change canonical,
equal to the 218 untranslated locale/page pairs counted straight from
content/docs/. Across all 577 prerendered documents, 370 differ and 370 is
again the oracle's count. Blanking absolute URLs and the two language values
makes all 370 byte-identical in rendered markup, so navigation, the visible
breadcrumb and body text are unchanged.
0 commit comments