« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page/group.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/page/group.js')
-rw-r--r--src/page/group.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/page/group.js b/src/page/group.js
index 4d5f91c..8795e15 100644
--- a/src/page/group.js
+++ b/src/page/group.js
@@ -40,3 +40,21 @@ export function pathsForTarget(group) {
     },
   ];
 }
+
+export function pathsTargetless({wikiData: {wikiInfo}}) {
+  return [
+    wikiInfo.canonicalBase === 'https://hsmusic.wiki/' &&
+      {
+        type: 'redirect',
+        fromPath: ['path', 'albums/fandom/'],
+        toPath: ['groupGallery', 'fandom'],
+      },
+
+    wikiInfo.canonicalBase === 'https://hsmusic.wiki/' &&
+      {
+        type: 'redirect',
+        fromPath: ['path', 'albums/official/'],
+        toPath: ['groupGallery', 'official'],
+      },
+  ];
+}