Add wildcard redirects for retired doc versions (v22.2 and earlier)#22931
Open
ebembi-crdb wants to merge 1 commit intomainfrom
Open
Add wildcard redirects for retired doc versions (v22.2 and earlier)#22931ebembi-crdb wants to merge 1 commit intomainfrom
ebembi-crdb wants to merge 1 commit intomainfrom
Conversation
Versions v22.2 and earlier are no longer hosted in the docs site, causing inbound links to return 404. Reported via user feedback: https://www.cockroachlabs.com/docs/v22.2/cockroach-start Add Netlify wildcard redirect rules for all retired versions (v1.0 through v22.2) pointing :splat to the equivalent stable page, so existing bookmarks and external links land on current docs.
✅ Deploy Preview for cockroachdb-interactivetutorials-docs canceled.
|
Files changed:
|
✅ Deploy Preview for cockroachdb-api-docs canceled.
|
✅ Netlify Preview
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
Thanks @ebembi-crdb. Do we handle the case where the equivalent path does not exist on |
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
stable/pagehttps://www.cockroachlabs.com/docs/v22.2/cockroach-startVersions v23.1 and later are actively hosted. Everything v22.2 and older has no doc directory in the repo, so any inbound link to those versions returns a 404. The wildcard rules send visitors to the same page path under
stable/instead.No internal links in the codebase point to retired version pages — this is purely an inbound SEO/UX fix.
Test plan
https://deploy-preview-XXXX--cockroachdb-docs.netlify.app/docs/v22.2/cockroach-startredirects to.../docs/stable/cockroach-start/docs/v21.2/show-tables) also redirect correctly/docs/v23.1/cockroach-start) are unaffected