@devries-cameron20 / composio-1 / commits / 993ce069a
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

docs: redirect URLs agents guess (DEVREL-330)

Brendan O'Leary committed Nov 19, 2026 at 15:11 UTC 993ce069ad4a9e11954bfd4c254af78bffaee3c0
2 files changed +84
docs/next.config.mjs
+69
@@ -1116,6 +1116,18 @@ const config = {
1116 destination: '/docs',
1117 permanent: true,
1118 },
1119 + // Guessed /auth slugs that have a real target page (DEVREL-330).
1120 + // Must precede the /auth/:path* catch-all below.
1121 + {
1122 + source: '/auth/token-custody',
1123 + destination: '/docs/security/token-custody',
1124 + permanent: true,
1125 + },
1126 + {
1127 + source: '/auth/proxy-execute',
1128 + destination: '/docs/extending-sessions/proxy-execute',
1129 + permanent: true,
1130 + },
1131 {
1132 source: '/auth/:path*',
1133 destination: '/docs/authentication',
@@ -1283,6 +1295,63 @@ const config = {
1295 destination: '/docs/cli',
1296 permanent: true,
1297 },
1298 + // Framework, MCP, and Connect Link URLs agents guess from feature
1299 + // names (DEVREL-330). Each source returned 404 in Gauge sessions.
1300 + {
1301 + source: '/docs/mastra',
1302 + destination: '/docs/providers/mastra',
1303 + permanent: true,
1304 + },
1305 + {
1306 + source: '/docs/vercel-ai-sdk',
1307 + destination: '/docs/providers/vercel',
1308 + permanent: true,
1309 + },
1310 + {
1311 + source: '/docs/integrations/vercel-ai-sdk',
1312 + destination: '/docs/providers/vercel',
1313 + permanent: true,
1314 + },
1315 + {
1316 + source: '/docs/:legacy(langchain|langgraph)',
1317 + destination: '/docs/providers/langchain',
1318 + permanent: true,
1319 + },
1320 + {
1321 + source: '/docs/providers/vercel-ai-sdk',
1322 + destination: '/docs/providers/vercel',
1323 + permanent: true,
1324 + },
1325 + {
1326 + source: '/providers/vercel-ai-sdk',
1327 + destination: '/docs/providers/vercel',
1328 + permanent: true,
1329 + },
1330 + {
1331 + source: '/docs/connect-links',
1332 + destination: '/docs/authentication',
1333 + permanent: true,
1334 + },
1335 + {
1336 + source: '/docs/mcp-auth',
1337 + destination: '/docs/authentication/managed-auth-for-custom-tools',
1338 + permanent: true,
1339 + },
1340 + {
1341 + source: '/docs/auth-tools/auth-on-mcp',
1342 + destination: '/docs/authentication/managed-auth-for-custom-tools',
1343 + permanent: true,
1344 + },
1345 + {
1346 + source: '/providers/mcp',
1347 + destination: '/docs/single-toolkit-mcp',
1348 + permanent: true,
1349 + },
1350 + {
1351 + source: '/docs/providers/mcp',
1352 + destination: '/docs/single-toolkit-mcp',
1353 + permanent: true,
1354 + },
1355 ];
1356 },
1357 };
docs/tests/integration/redirects.test.ts
+15
@@ -63,6 +63,21 @@ const REDIRECTS = [
63 { from: "/docs/auth-management/overview", to: "/docs/authentication" },
64 { from: "/docs/managed-auth", to: "/docs/authentication/custom-app-vs-managed-app" },
65 { from: "/docs/authentication/overview", to: "/docs/authentication" },
66 + // URL guesses from DEVREL-330 (Gauge agent sessions hit every 404 below).
67 + { from: "/docs/mastra", to: "/docs/providers/mastra" },
68 + { from: "/docs/vercel-ai-sdk", to: "/docs/providers/vercel" },
69 + { from: "/docs/integrations/vercel-ai-sdk", to: "/docs/providers/vercel" },
70 + { from: "/docs/langchain", to: "/docs/providers/langchain" },
71 + { from: "/docs/langgraph", to: "/docs/providers/langchain" },
72 + { from: "/docs/providers/vercel-ai-sdk", to: "/docs/providers/vercel" },
73 + { from: "/providers/vercel-ai-sdk", to: "/docs/providers/vercel" },
74 + { from: "/docs/connect-links", to: "/docs/authentication" },
75 + { from: "/docs/mcp-auth", to: "/docs/authentication/managed-auth-for-custom-tools" },
76 + { from: "/docs/auth-tools/auth-on-mcp", to: "/docs/authentication/managed-auth-for-custom-tools" },
77 + { from: "/providers/mcp", to: "/docs/single-toolkit-mcp" },
78 + { from: "/docs/providers/mcp", to: "/docs/single-toolkit-mcp" },
79 + { from: "/auth/token-custody", to: "/docs/security/token-custody" },
80 + { from: "/auth/proxy-execute", to: "/docs/extending-sessions/proxy-execute" },
81 ];
82
83 describe('Vendor security review - retired KB routes', () => {