Skip to content

[fix](docs) use metadata.source so "Edit this page" links to the real .md/.mdx file#3648

Merged
morningman merged 3 commits into
apache:masterfrom
morningman:fix_doc_link
May 14, 2026
Merged

[fix](docs) use metadata.source so "Edit this page" links to the real .md/.mdx file#3648
morningman merged 3 commits into
apache:masterfrom
morningman:fix_doc_link

Conversation

@morningman
Copy link
Copy Markdown
Contributor

The previous logic in pathTransfer.ts rebuilt the source path from location.pathname and unconditionally appended .md, so any .mdx file (e.g. docs-next/connection-integration/mysql-proto.mdx) produced a broken GitHub link. Use Docusaurus's metadata.source instead, which always carries the correct file extension across all locales and versioned docs.

… .md/.mdx file

The previous logic in pathTransfer.ts rebuilt the source path from
location.pathname and unconditionally appended .md, so any .mdx file
(e.g. docs-next/connection-integration/mysql-proto.mdx) produced a
broken GitHub link. Use Docusaurus's metadata.source instead, which
always carries the correct file extension across all locales and
versioned docs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@morningman morningman merged commit 8bf4721 into apache:master May 14, 2026
4 checks passed
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.

1 participant