« 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/album.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/page/album.js')
-rw-r--r--src/page/album.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/page/album.js b/src/page/album.js
index a8e0b59..1d5c7c0 100644
--- a/src/page/album.js
+++ b/src/page/album.js
@@ -55,6 +55,17 @@ export function pathsForTarget(album) {
   ];
 }
 
+export function pathsTargetless({wikiData: {wikiInfo}}) {
+  return [
+    wikiInfo.canonicalBase === 'https://hsmusic.wiki/' &&
+      {
+        type: 'redirect',
+        fromPath: ['path', 'list/all-commentary/'],
+        toPath: ['commentaryIndex'],
+      },
+  ];
+}
+
 /*
 export function write(album, {wikiData}) {
   const getSocialEmbedDescription = ({