From 895105507740f4015caa14d7b975b028088114f6 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 22 Jun 2023 13:55:49 -0300 Subject: content: artist alias redirects --- src/page/artist-alias.js | 18 +++++++++--------- src/page/index.js | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/page') diff --git a/src/page/artist-alias.js b/src/page/artist-alias.js index f867d123..9e9fdf5b 100644 --- a/src/page/artist-alias.js +++ b/src/page/artist-alias.js @@ -7,15 +7,15 @@ export function targets({wikiData}) { return wikiData.artistAliasData; } -export function write(aliasArtist) { +export function pathsForTarget(aliasArtist) { const {aliasedArtist} = aliasArtist; - const redirect = { - type: 'redirect', - fromPath: ['artist', aliasArtist.directory], - toPath: ['artist', aliasedArtist.directory], - title: () => aliasedArtist.name, - }; - - return [redirect]; + return [ + { + type: 'redirect', + fromPath: ['artist', aliasArtist.directory], + toPath: ['artist', aliasedArtist.directory], + title: () => aliasedArtist.name, + }, + ]; } diff --git a/src/page/index.js b/src/page/index.js index 01c3d2de..311fcd6c 100644 --- a/src/page/index.js +++ b/src/page/index.js @@ -9,7 +9,7 @@ export * as album from './album.js'; export * as artist from './artist.js'; -// export * as artistAlias from './artist-alias.js'; +export * as artistAlias from './artist-alias.js'; // export * as flash from './flash.js'; // export * as group from './group.js'; // export * as homepage from './homepage.js'; -- cgit 1.3.0-6-gf8a5