Skip to content
Draft
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
4 changes: 2 additions & 2 deletions app/en/resources/integrations/components/toolkits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ import { useFilterStore, useToolkitFilters } from "./use-toolkit-filters";

// Map old MCP server paths to new integration paths
function mapToNewIA(oldLink: string): string {
// Pattern: /en/mcp-servers/{category}/{tool} -> /en/resources/integrations/{category}/{tool}/reference
// Pattern: /en/mcp-servers/{category}/{tool} -> /en/resources/integrations/{category}/{tool}
const mcpServerPattern = /^\/en\/mcp-servers\/([^/]+)\/([^/]+)$/;
const match = oldLink.match(mcpServerPattern);

if (match) {
const [, category, tool] = match;
return `/en/resources/integrations/${category}/${tool}/reference`;
return `/en/resources/integrations/${category}/${tool}`;
}

// Return original link if it doesn't match the pattern
Expand Down