Skip to content

Redirect legacy GitBook /docs/v/4.X/* URLs#493

Merged
Ethan-Arrowood merged 1 commit into
mainfrom
fix/gitbook-v-redirects
May 22, 2026
Merged

Redirect legacy GitBook /docs/v/4.X/* URLs#493
Ethan-Arrowood merged 1 commit into
mainfrom
fix/gitbook-v-redirects

Conversation

@Ethan-Arrowood
Copy link
Copy Markdown
Member

Adds 102 explicit redirect rules to historic-redirects.ts covering the GitBook-era /v/ URL pattern, derived from GA pageview data (scripts/harper-docs-analytics.csv). Each /docs/v/4.X/ is mapped to the same target as its existing /docs/4.X/ sibling.

Also adds a comprehensive "Redirects" section to CONTRIBUTING.md covering the split between redirects.ts and historic-redirects.ts, how historic redirects are derived from analytics, the subset of paths intentionally not redirected, and future work for migrating to server-side redirects with wildcard support if the site moves to a host with a real request lifecycle.

Adds 102 explicit redirect rules to historic-redirects.ts covering the
GitBook-era /v/ URL pattern, derived from GA pageview data
(scripts/harper-docs-analytics.csv). Each /docs/v/4.X/<path> is mapped to
the same target as its existing /docs/4.X/<path> sibling.

Also adds a comprehensive "Redirects" section to CONTRIBUTING.md
covering the split between redirects.ts and historic-redirects.ts, how
historic redirects are derived from analytics, the subset of paths
intentionally not redirected, and future work for migrating to
server-side redirects with wildcard support if the site moves to a host
with a real request lifecycle.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Ethan-Arrowood Ethan-Arrowood requested a review from a team as a code owner May 21, 2026 23:41
@github-actions github-actions Bot temporarily deployed to pr-493 May 21, 2026 23:44 Inactive
@github-actions
Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-493

This preview will update automatically when you push new commits.

@Ethan-Arrowood Ethan-Arrowood merged commit b518f8e into main May 22, 2026
7 checks passed
@Ethan-Arrowood Ethan-Arrowood deleted the fix/gitbook-v-redirects branch May 22, 2026 13:49
@github-actions
Copy link
Copy Markdown

🧹 Preview Cleanup

The preview deployment for this PR has been removed.

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.

3 participants