diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-09-23 20:19:12 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-23 20:19:12 -0300 |
commit | 61a3fad9cde8fa3809ccf26465f69dd050e6c669 (patch) | |
tree | 5c5c90d452c5aa7c023174bddc1a08f3f0acd75f /src/page | |
parent | 64476074cbc7375afe2388ddd6e9e3275c25f3bd (diff) | |
parent | a53d53e1f95d84b23cffb9a5d43f1a70a412b6fe (diff) |
Merge branch 'preview' into track-data-cleanup
Diffstat (limited to 'src/page')
-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', |