This commit is contained in:
Marvin
2026-04-10 01:39:48 +02:00
parent d1650139d9
commit b37a0d9078
12 changed files with 19107 additions and 60 deletions

View File

@@ -93,8 +93,13 @@ const config = {
if (existingPath.startsWith('/wiki/')) {
const legacyPath = existingPath.replace('/wiki', '');
// Avoid shadowing the static /mods catalog page and its children
if (legacyPath === '/mods' || legacyPath.startsWith('/mods/')) {
// Avoid shadowing static pages and explicit redirects in `redirects` below
if (
legacyPath === '/mods' ||
legacyPath.startsWith('/mods/') ||
legacyPath === '/plugins' ||
legacyPath.startsWith('/plugins/')
) {
return undefined;
}
return [legacyPath];