From b67e5af25f22809b24f50cd8a1a95e85592b877b Mon Sep 17 00:00:00 2001 From: juan leal <114959779+juandolealt@users.noreply.github.com> Date: Mon, 30 Nov 2026 16:22:35 +0000 Subject: [PATCH] fix(docs): redirect retired resources index to guides --- edge-routing.json | 20 ++++++++++++++++++++ src/lib/docs-routing.test.ts | 19 +++++++++++++++++++ vocs.config.ts | 2 ++ 3 files changed, 41 insertions(+) diff --git a/edge-routing.json b/edge-routing.json index 8763a19a3..ca8614de5 100644 --- a/edge-routing.json +++ b/edge-routing.json @@ -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", diff --git a/src/lib/docs-routing.test.ts b/src/lib/docs-routing.test.ts index 02f86d21f..5054ceebd 100644 --- a/src/lib/docs-routing.test.ts +++ b/src/lib/docs-routing.test.ts @@ -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, diff --git a/vocs.config.ts b/vocs.config.ts index 0fd5f4eca..35bc8bc3c 100644 --- a/vocs.config.ts +++ b/vocs.config.ts @@ -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 }, ...blogMigrationRedirects.map((redirect) => ({ ...redirect, status: 301 as const })), { source: '/docs/resources/partners.md',