Skip to content

fix(docs): add version prefix to 'Edit this page on GitHub' links#2120

Open
gldkhoward wants to merge 1 commit into
vercel:mainfrom
gldkhoward:fix/docs-edit-link-404
Open

fix(docs): add version prefix to 'Edit this page on GitHub' links#2120
gldkhoward wants to merge 1 commit into
vercel:mainfrom
gldkhoward:fix/docs-edit-link-404

Conversation

@gldkhoward
Copy link
Copy Markdown

Summary

  • All "Edit this page on GitHub" links produce 404s — regression from docs: split v4/v5 content trees and fix version switcher end-to-end #1948 (v4/v5 content split)
  • EditSource was not updated to include the v4/ or v5/ directory prefix in the GitHub URL
  • Adds a version prop to EditSource, passed from each page route matching the existing server-side v4/v5 routing pattern

Fixes #2119

Test plan

  • v4 docs/cookbook pages link to docs/content/docs/v4/...
  • v5 docs/cookbook pages link to docs/content/docs/v5/...
  • Confirmed links resolve to valid files on GitHub
  • Verified locally with pnpm dev

🤖 Generated with Claude Code

@gldkhoward gldkhoward requested a review from a team as a code owner May 27, 2026 08:19
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 27, 2026

⚠️ No Changeset found

Latest commit: 372a68e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 27, 2026

@gldkhoward is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

Fixes vercel#2119

Signed-off-by: Luke Howard <dev@lukehoward.com.au>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Luke Howard <dev@lukehoward.com.au>
@gldkhoward gldkhoward force-pushed the fix/docs-edit-link-404 branch from d2c1a7c to 372a68e Compare May 27, 2026 08:26
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.

Docs: 'Edit this page on GitHub' links are 404 — missing version prefix

1 participant