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