Repository navigation
fix(docs): redirect retired resources index to guides - #1209
juandolealt wants to merge 1 commit into
Conversation
| { source: '/resources', destination: '/docs/resources/guides', status: 301 }, | ||
| { source: '/docs/resources', destination: '/docs/resources/guides', status: 301 }, |
There was a problem hiding this comment.
🟣 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.
Summary
/resourcesand/docs/resourcesto the existing payment and integration guides index./developersmount and add regression coverage. Exact rules run before legacy-host catch-alls; child pages are unchanged.Validation
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.