blob: 23513ce183e6aa1555c36f7d7ba0c9e2c2d6e036 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Artist alias redirect pages.
// (Makes old permalinks bring visitors to the up-to-date page.)
export const description = `redirects for aliased artist names`;
export function targets({wikiData}) {
return wikiData.artistAliasData;
}
export function pathsForTarget(aliasArtist) {
const {aliasedArtist} = aliasArtist;
return [
{
type: 'redirect',
fromPath: ['artist', aliasArtist.directory],
toPath: ['artist', aliasedArtist.directory],
title: aliasedArtist.name,
},
];
}
|