Skip to content

Commit cfc19cf

Browse files
committed
remove dynamic redirects
1 parent 54eeee5 commit cfc19cf

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

build/lib/generateContent.ts

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -417,20 +417,9 @@ async function generateRedirectsFile(rootDir: string): Promise<void> {
417417
}
418418
}
419419

420-
// Generate dynamic redirects for comma-separated patterns using placeholders
421-
const dynamicRedirects = [
422-
// Single framework redirects (static for better performance)
423-
...frameworkIds.map((id) => `/?f=${id} / 301`),
424-
// Dynamic redirects for comma-separated patterns - matches any comma-separated values
425-
// This will catch patterns like /?f=react,vue3,angular or /?f=mithril,alpine,etc
426-
"/?f=:frameworks / 301",
427-
];
428-
429-
redirects.push(...dynamicRedirects);
430-
431-
// Add specific compare patterns that don't match our framework pairs
432-
const specificCompareRedirects = ["/compare/emberPolaris-vs-angular / 301"];
433-
redirects.push(...specificCompareRedirects);
420+
// Note: Removed problematic dynamic redirects that were causing infinite loops
421+
// The /?f=:frameworks rule was too broad and redirected legitimate framework URLs
422+
// Specific compare patterns are handled by the individual framework comparison redirects above
434423

435424
const redirectsContent = `# File generated from "node scripts/generateContent.js", DO NOT EDIT/COMMIT
436425
${redirects.join("\n")}

0 commit comments

Comments
 (0)