Skip to content

fix(docs): redirect retired resources index to guides - #1209

Open
juandolealt wants to merge 1 commit into
mainfrom
fix/resources-index-redirect
Open

juandolealt wants to merge 1 commit into
mainfrom
fix/resources-index-redirect

Conversation

@juandolealt

Copy link
Copy Markdown
Member

Summary

  • Redirect /resources and /docs/resources to the existing payment and integration guides index.
  • Mirror both redirects at the public /developers mount and add regression coverage. Exact rules run before legacy-host catch-alls; child pages are unchanged.

Validation

  • Confirmed the legacy resources URL ends in a 404 and the guides destination returns 200.
  • Checked open pull requests for an existing fix.
  • pnpm exec vitest run src/lib/docs-routing.test.ts — 541 tests passed.
  • pnpm exec biome check edge-routing.json vocs.config.ts src/lib/docs-routing.test.ts — passed.
  • pnpm build — passed, including type and style checks. Build emitted OG API export and asset-name warnings in unchanged code.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

Comment thread vocs.config.ts
Comment on lines +1393 to +1394
{ source: '/resources', destination: '/docs/resources/guides', status: 301 },
{ source: '/docs/resources', destination: '/docs/resources/guides', status: 301 },

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟣 pre-existing, not blocking: Pre-existing: agents fetching the Markdown twin of the retired index still get a 404, while the HTML URL now redirects. Only /resources and /docs/resources get rules. Their .md and /assets/md/... twins get none, although the partners retirement just below mirrors every one. Fix: also redirect /docs/resources.md and /assets/md/docs/resources.md to the matching guides.md paths in vocs.config.ts. Mirror both, plus their /developers forms, in edge-routing.json and extend the new test.
A small fix can ride a push you are already making; otherwise a short reply is enough.

Why this was flagged

An agent following the .md convention in public/SKILL.md requests https://tempo.com/developers/docs/resources.md or /developers/assets/md/docs/resources.md. No page exists at src/pages/docs/resources, and the new rules at vocs.config.ts:1393-1394 and edge-routing.json:4-23 match only the bare paths. So these requests 404, the same as on the base branch, while the HTML URL now redirects. The retired partners index sets the precedent: vocs.config.ts:1397-1403 and edge-routing.json:565-581 redirect /docs/resources/partners.md and /assets/md/docs/resources/partners.md to guides.md at both mounts. This change leaves that pattern incomplete. No test enforces Markdown-twin redirects, so docs-routing.test.ts does not catch the gap.

Verification: Pre-existing. The trigger is an agent or client asking for the Markdown twin of the retired index: /docs/resources.md, /assets/md/docs/resources.md, or either one under /developers. Only bare-path rules are added in vocs.config.ts:1393-1394 and edge-routing.json:4-23. The base branch 404s on these URLs by the same route. The new test checks only the bare sources.

This branch has not been deployed

No deployments
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.

1 participant