fix: genre slugs

This commit is contained in:
Cory Dransfeldt 2024-07-26 21:01:54 -07:00
parent 0754a715ed
commit b03a014258
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ const fetchGenresWithArtists = async () => {
...artist,
country: parseCountryField(artist['country'])
}))
genre['url'] = `/music/genres/${slugify(genre['name'].toLowerCase())}`
genre['url'] = `/music/genres/${slugify(genre['name'].replace('/', '-').toLowerCase())}`
})
return data