mirror of
https://github.com/mleem97/gregWiki.git
synced 2026-04-11 03:29:19 +02:00
w
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user