« get me outta code hell

write, content: restore & handle redirect titles properly - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-08-08 11:46:44 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-08-08 11:46:44 -0300
commit725482638dcc96632c3a9cf2b885f4128c50a1c1 (patch)
tree238bd34da7762ab50085d7d39f2a63c7921b0e33 /src/page
parentf65bbab508cebdbaffd188366e983945d73abd4a (diff)
write, content: restore & handle redirect titles properly
Diffstat (limited to 'src/page')
-rw-r--r--src/page/album.js1
-rw-r--r--src/page/artist-alias.js2
-rw-r--r--src/page/group.js2
3 files changed, 4 insertions, 1 deletions
diff --git a/src/page/album.js b/src/page/album.js
index 4ed5bcb..3b2d02d 100644
--- a/src/page/album.js
+++ b/src/page/album.js
@@ -68,6 +68,7 @@ export function pathsTargetless({wikiData: {wikiInfo}}) {
         type: 'redirect',
         fromPath: ['page', 'list/all-commentary'],
         toPath: ['commentaryIndex'],
+        title: 'Album Commentary',
       },
   ];
 }
diff --git a/src/page/artist-alias.js b/src/page/artist-alias.js
index 9e9fdf5..23513ce 100644
--- a/src/page/artist-alias.js
+++ b/src/page/artist-alias.js
@@ -15,7 +15,7 @@ export function pathsForTarget(aliasArtist) {
       type: 'redirect',
       fromPath: ['artist', aliasArtist.directory],
       toPath: ['artist', aliasedArtist.directory],
-      title: () => aliasedArtist.name,
+      title: aliasedArtist.name,
     },
   ];
 }
diff --git a/src/page/group.js b/src/page/group.js
index e1ed418..fa6c1c9 100644
--- a/src/page/group.js
+++ b/src/page/group.js
@@ -48,6 +48,7 @@ export function pathsTargetless({wikiData: {wikiInfo}}) {
         type: 'redirect',
         fromPath: ['page', 'albums/fandom'],
         toPath: ['groupGallery', 'fandom'],
+        title: 'Fandom - Gallery',
       },
 
     wikiInfo.canonicalBase === 'https://hsmusic.wiki/' &&
@@ -55,6 +56,7 @@ export function pathsTargetless({wikiData: {wikiInfo}}) {
         type: 'redirect',
         fromPath: ['page', 'albums/official'],
         toPath: ['groupGallery', 'official'],
+        title: 'Official - Gallery',
       },
   ];
 }