docs(docs): fix 404 on v3 config-migration page from v4 upgrade guide#2429
Merged
Conversation
The link from /v4-0-0-snapshot/upgrading/2x-to-3x/ to the v3 Config Directory Migration page 404'd because the file was named 3.0.0-config-migration.md and Astro's slug generator strips dots entirely rather than converting them to dashes, producing the unintuitive URL /v3-0-0/upgrading/300-config-migration/. PR #2181 introduced the link assuming dots-to-dashes — that assumption was incorrect. - Rename file to 3-0-0-config-migration.md so the URL matches every other doc filename in the tree and the existing link works as written. - Add redirect from /300-config-migration/ to preserve any external bookmarks accumulated while the dotted-slug URL was live. - Add a sidebar entry under INTRODUCTION > Upgrading; the page was orphaned from v3-0-0.json entirely. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The link in v4-0-0-snapshot/upgrading/2x-to-3x.mdx pointing at
/v3-0-0/upgrading/3-0-0-config-migration/returns 404. Reported via Slack.Root cause: The target file was named
3.0.0-config-migration.md— the only dotted filename in the entire docs tree. Astro/Starlight's slug generator strips dots entirely rather than converting them to dashes, producing the unintuitive live URL/v3-0-0/upgrading/300-config-migration/. PR #2181 introduced the link assuming dots-to-dashes — that assumption was wrong.Changes
3.0.0-config-migration.md→3-0-0-config-migration.mdso the URL matches every other doc filename in the tree (verified viagit mvto preserve history). The existing link in2x-to-3x.mdxalready uses dashes and now resolves correctly./v3-0-0/upgrading/300-config-migration/→/v3-0-0/upgrading/3-0-0-config-migration/inastro.config.mjsto preserve any external bookmarks to the dots-stripped slug while it was live.src/sidebars/v3-0-0.jsonentirely — added as a child underINTRODUCTION > Upgradingusing the existinglink + itemsidiom (rendered as a collapsible group with "Overview" + the new entry bynormalizeIteminastro.config.mjs).Test plan
/v3-0-0/upgrading/3-0-0-config-migration/returns 200/v3-0-0/upgrading/300-config-migration/redirects to the new URL/v4-0-0-snapshot/upgrading/2x-to-3x/no longer 404s🤖 Generated with Claude Code