Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
fix(page): use redirect link on /songs page
Browse files Browse the repository at this point in the history
  • Loading branch information
nogic1008 authored Mar 2, 2023
1 parent 8335553 commit f8c7537
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pages/songs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
v-for="slug in (props.row as (typeof songs[number])).series"
:key="slug"
class="button is-small"
:to="`/series/${slug}`"
:to="getLinks(slug)"
:style="{
backgroundColor: seriesList[slug].backgroundColor,
color: seriesList[slug].color,
Expand Down Expand Up @@ -56,4 +56,7 @@ const { songs } = await useSongList(
'artist',
'bpm'
)
const getLinks = (slug: keyof typeof seriesList) =>
(seriesList[slug] as { redirect?: string }).redirect ?? `/series/${slug}`
</script>

0 comments on commit f8c7537

Please sign in to comment.