diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-08-08 11:44:41 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-08-08 11:44:41 -0300 |
commit | f65bbab508cebdbaffd188366e983945d73abd4a (patch) | |
tree | 8e79c758476750d6beb72cc158c3ed344c80c0d1 /src/page | |
parent | 4236b4f348e14be2b78496c8d1c1c60942aa3515 (diff) |
content: dedicated arbitrary page URL key
This fixes getPageSubdirectoryPrefix thinking we're deeper than we really are.
Diffstat (limited to 'src/page')
-rw-r--r-- | src/page/album.js | 2 | ||||
-rw-r--r-- | src/page/group.js | 4 |
2 files changed, 3 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'], }, ]; |