Skip to content

Conversation

@nearestnabors
Copy link
Contributor

@nearestnabors nearestnabors commented Jan 5, 2026

Having some issues with redirects not functioning


Note

Aligns integrations pages with the new IA and ensures legacy links redirect correctly.

  • Adds mapToNewIA in toolkits.tsx to map /en/mcp-servers/{category}/{tool} to /en/resources/integrations/{category}/{tool}/reference for ToolCard links
  • Updates findToolkitFromPath to read the second-to-last path segment for /en/resources/integrations/{category}/{tool}/reference
  • Adjusts remark-glossary to skip processing on /resources/integrations/* pages
  • Adds localized en 308 redirects for multiple /home/build-tools/* paths to corresponding /en/guides/... destinations

Written by Cursor Bugbot for commit 9e73f1c. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Jan 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
docs Ready Ready Preview, Comment Jan 6, 2026 0:29am

/**
* Find toolkit from pathname
* e.g., /en/mcp-servers/productivity/gmail -> Gmail toolkit
* e.g., /en/resources/integrations/productivity/gmail/reference -> Gmail toolkit
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong path segment extracted for toolkit identification

The comment was updated to reflect the new URL structure ending in /reference (e.g., /en/resources/integrations/productivity/gmail/reference), but the code still extracts the last path segment using pathSegments.at(-1). This now returns "reference" instead of the actual toolkit name like "gmail". The function will always return null because "reference" won't match any toolkit ID in TOOLKIT_CATALOGUE, breaking toolkit identification throughout the app.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants