Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions edge-routing.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
{
"trailingSlash": false,
"redirects": [
{
"source": "/resources",
"destination": "https://tempo.com/developers/docs/resources/guides",
"permanent": true
},
{
"source": "/developers/resources",
"destination": "https://tempo.com/developers/docs/resources/guides",
"permanent": true
},
{
"source": "/docs/resources",
"destination": "https://tempo.com/developers/docs/resources/guides",
"permanent": true
},
{
"source": "/developers/docs/resources",
"destination": "https://tempo.com/developers/docs/resources/guides",
"permanent": true
},
{
"source": "/blog",
"destination": "https://tempo.com/blog/?channel=engineering",
Expand Down
19 changes: 19 additions & 0 deletions src/lib/docs-routing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,25 @@ function developersProxyDestination(destination: string) {
}

describe('docs routing redirects', () => {
it.each([
'/resources',
'/docs/resources',
])('redirects the retired resources index %s to the guides index', (source) => {
expect(vocsRedirects).toContainEqual(
expect.objectContaining({
source,
destination: docsRouteDestination('/docs/resources/guides'),
status: 301,
}),
)
for (const prefix of ['', '/developers']) {
expect(findRedirect(`${prefix}${source}`)).toMatchObject({
destination: `${canonicalDevelopersOrigin}/docs/resources/guides`,
permanent: true,
})
}
})

describe('developer site entry points', () => {
it.each(developerSurfaceRedirects)('redirects $source to $destination in both mounts', ({
source,
Expand Down
2 changes: 2 additions & 0 deletions vocs.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,8 @@ export default defineConfig({
},
],
redirects: collapseRedirectChains([
{ source: '/resources', destination: '/docs/resources/guides', status: 301 },
{ source: '/docs/resources', destination: '/docs/resources/guides', status: 301 },
Comment on lines +1393 to +1394

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.

...blogMigrationRedirects.map((redirect) => ({ ...redirect, status: 301 as const })),
{
source: '/docs/resources/partners.md',
Expand Down
Loading