Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix(docs): remove operationId redirects that break API pages
The catch-all :operationId redirects would intercept valid OpenAPI-generated operation pages (e.g., /reference/api-reference/tool-router/postToolRouterSession) and incorrectly redirect them to section indexes. These pages ARE dynamically generated by fumadocs-openapi and linked from the index.mdx files in each section. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sushmithamallesh committed
Feb 4, 2026 at 14:05 UTC
90267c7c7dcce7c56222890d7b847adca981778f
1 file changed
-43
docs/next.config.mjs
-43
@@ -491,49 +491,6 @@ const config = {
491
destination: '/docs/providers/custom-providers/typescript',
492
permanent: true,
493
},
494
- // Old Fern API reference operation IDs (from Datadog 404 monitoring)
495
- // Use :operationId (single segment) to redirect operation pages to section index
496
- // e.g. /reference/api-reference/tool-router/postToolRouterSession → /reference/api-reference/tool-router
497
- {
498
- source: '/reference/api-reference/tool-router/:operationId',
499
- destination: '/reference/api-reference/tool-router',
500
- permanent: true,
501
- },
502
- {
503
- source: '/reference/api-reference/triggers/:operationId',
504
- destination: '/reference/api-reference/triggers',
505
- permanent: true,
506
- },
507
- {
508
- source: '/reference/api-reference/authentication/:operationId',
509
- destination: '/reference/api-reference/authentication',
510
- permanent: true,
511
- },
512
- {
513
- source: '/reference/api-reference/mcp/:operationId',
514
- destination: '/reference/api-reference/mcp',
515
- permanent: true,
516
- },
517
- {
518
- source: '/reference/api-reference/tools/:operationId',
519
- destination: '/reference/api-reference/tools',
520
- permanent: true,
521
- },
522
- {
523
- source: '/reference/api-reference/toolkits/:operationId',
524
- destination: '/reference/api-reference/toolkits',
525
- permanent: true,
526
- },
527
- {
528
- source: '/reference/api-reference/connected-accounts/:operationId',
529
- destination: '/reference/api-reference/connected-accounts',
530
- permanent: true,
531
- },
532
- {
533
- source: '/reference/api-reference/auth-configs/:operationId',
534
- destination: '/reference/api-reference/auth-configs',
535
- permanent: true,
536
- },
494
// Old Fern v-3 paths (different hyphenation)
495
{
496
source: '/reference/v-3/:path*',