Skip to content

[Website] Fix non-relative content links#9933

Merged
tobias-tengler merged 2 commits into
mainfrom
tte/fix-links-in-website-vnext
Jun 16, 2026
Merged

[Website] Fix non-relative content links#9933
tobias-tengler merged 2 commits into
mainfrom
tte/fix-links-in-website-vnext

Conversation

@tobias-tengler

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 16, 2026 21:18
@tobias-tengler tobias-tengler merged commit 75ac168 into main Jun 16, 2026
22 checks passed
@tobias-tengler tobias-tengler deleted the tte/fix-links-in-website-vnext branch June 16, 2026 21:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Tightens the website MDX authoring rules by enforcing relative Markdown links inside content/docs and content/blog, and updates existing content to comply so links remain verifiable and resilient to routing changes.

Changes:

  • Add a build-time failure in rewriteMdLinks for root-absolute /docs/... and /blog/... links when authored inside content/*.
  • Convert multiple docs/blog links from hard-coded site URLs to relative .md file links so the remark pipeline can rewrite/validate them.
  • Update website authoring documentation to reflect the new linking guidance.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
website-next/src/remark/rewriteMdLinks.mjs Enforces relative linking for /docs and /blog routes inside content sources.
website-next/README.md Updates Markdown authoring guidance and examples for relative link usage.
website-next/content/docs/nitro/documents/operations.md Replaces external Hot Chocolate v13 URL with a relative doc link.
website-next/content/docs/nitro/apis/schema-registry.md Replaces external Hot Chocolate v13 URL with a relative doc link.
website-next/content/docs/nitro/apis/fusion.md Replaces external Hot Chocolate v13 URL with a relative doc link.
website-next/content/docs/nitro/apis/client-registry.md Replaces external StrawberryShake URL with a relative doc link.
website-next/content/docs/hotchocolate/migrating/migrate-from-13-to-14.md Replaces external v14 URLs with relative doc links.
website-next/content/docs/hotchocolate/migrating/migrate-from-12-to-13.md Replaces external v13 URLs with relative doc links (including anchored links).
website-next/content/docs/hotchocolate/migrating/migrate-from-11-to-12.md Replaces external v12 URLs with relative doc links (including anchored links).
website-next/content/docs/hotchocolate/migrating/migrate-from-10-to-11.md Replaces external v11 URL with a relative doc link.
website-next/content/blog/2026-06-06-newsletter-may-2026.md Converts /blog/... route links to relative sibling post links.
website-next/content/blog/2024-08-30-hot-chocolate-14.md Converts external Banana Cake Pop docs link to an internal relative doc link.
website-next/content/blog/2022-01-13-hot-chocolate-12-5.md Converts external v12 docs links to internal relative doc links.
website-next/AGENTS.md Updates contributor guidance to point to the renamed README authoring section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread website-next/README.md
Comment thread website-next/content/docs/nitro/apis/schema-registry.md
Comment thread website-next/AGENTS.md
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