diff options
Diffstat (limited to 'src/page/group.js')
-rw-r--r-- | src/page/group.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/page/group.js b/src/page/group.js index 4d5f91c8..fa6c1c97 100644 --- a/src/page/group.js +++ b/src/page/group.js @@ -40,3 +40,23 @@ export function pathsForTarget(group) { }, ]; } + +export function pathsTargetless({wikiData: {wikiInfo}}) { + return [ + wikiInfo.canonicalBase === 'https://hsmusic.wiki/' && + { + type: 'redirect', + fromPath: ['page', 'albums/fandom'], + toPath: ['groupGallery', 'fandom'], + title: 'Fandom - Gallery', + }, + + wikiInfo.canonicalBase === 'https://hsmusic.wiki/' && + { + type: 'redirect', + fromPath: ['page', 'albums/official'], + toPath: ['groupGallery', 'official'], + title: 'Official - Gallery', + }, + ]; +} |