diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-09-19 17:23:05 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-19 17:23:05 -0300 |
commit | a53d53e1f95d84b23cffb9a5d43f1a70a412b6fe (patch) | |
tree | 9da35a4f5fdf2701fac1594692aca504b6bdd316 | |
parent | 9745cf89d808bc2e4698af346ddbc53e1ae08a2c (diff) |
page: don't generate redirect from directory to same directory
-rw-r--r-- | src/page/artist-alias.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/page/artist-alias.js b/src/page/artist-alias.js index 1da2af41..d2305229 100644 --- a/src/page/artist-alias.js +++ b/src/page/artist-alias.js @@ -7,6 +7,12 @@ export function targets({wikiData}) { export function pathsForTarget(aliasArtist) { const {aliasedArtist} = aliasArtist; + // Don't generate a redirect page if this aliased name resolves to the same + // directory as the original artist! See issue #280. + if (aliasArtist.directory === aliasedArtist.directory) { + return []; + } + return [ { type: 'redirect', |