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 d0ee357
Browse filesBrowse the repository at this point in the historyBrowse files
fix(docs): emit the locale-independent .mdx URL from the docs page (#211)
The Copy Markdown button and the Open popover derived their target as page.url plus .mdx. On a locale-prefixed route page.url carries the prefix, and next.config.mjs rewrites exactly one shape, so every prefixed variant fell through to the docs route and 404'd -- roughly 400 dead links across 79 pages and six locales.
The target now derives from page.slugs and is bound once, so both controls take the same value and a future third inherits it rather than re-deriving from page.url.
The prefix is dropped rather than the rewrite widened because /llms.mdx is English-only by construction: its handler calls source.getPage(slug) with no language argument, so a locale-prefixed rewrite could not deliver translated markdown.
Verified across all 553 page renders: 79 distinct targets, 0 locale-prefixed, 0 English targets moved, 0 non-200.
next.config.mjs untouched. A third consumer -- llms.txt advertising a rule composition that 404s -- is filed as #210, not fixed here.
Closes#207
0 commit comments