« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/page/album.js2
-rw-r--r--src/page/group.js4
-rw-r--r--src/url-spec.js1
3 files changed, 4 insertions, 3 deletions
diff --git a/src/page/album.js b/src/page/album.js
index edde73a8..4ed5bcb1 100644
--- a/src/page/album.js
+++ b/src/page/album.js
@@ -66,7 +66,7 @@ export function pathsTargetless({wikiData: {wikiInfo}}) {
     wikiInfo.canonicalBase === 'https://hsmusic.wiki/' &&
       {
         type: 'redirect',
-        fromPath: ['path', 'list/all-commentary/'],
+        fromPath: ['page', 'list/all-commentary'],
         toPath: ['commentaryIndex'],
       },
   ];
diff --git a/src/page/group.js b/src/page/group.js
index 8795e15b..e1ed4185 100644
--- a/src/page/group.js
+++ b/src/page/group.js
@@ -46,14 +46,14 @@ export function pathsTargetless({wikiData: {wikiInfo}}) {
     wikiInfo.canonicalBase === 'https://hsmusic.wiki/' &&
       {
         type: 'redirect',
-        fromPath: ['path', 'albums/fandom/'],
+        fromPath: ['page', 'albums/fandom'],
         toPath: ['groupGallery', 'fandom'],
       },
 
     wikiInfo.canonicalBase === 'https://hsmusic.wiki/' &&
       {
         type: 'redirect',
-        fromPath: ['path', 'albums/official/'],
+        fromPath: ['page', 'albums/official'],
         toPath: ['groupGallery', 'official'],
       },
   ];
diff --git a/src/url-spec.js b/src/url-spec.js
index d1e347e5..8340f196 100644
--- a/src/url-spec.js
+++ b/src/url-spec.js
@@ -21,6 +21,7 @@ const urlSpec = {
     paths: {
       root: '',
       path: '<>',
+      page: '<>/',
 
       home: '',