Don't show Artist Page for "Various Artists"
This commit is contained in:
@@ -8,7 +8,7 @@ import config from '../config'
|
||||
export const useGetHandleArtistClick = (width) => {
|
||||
const [perPage] = useAlbumsPerPage(width)
|
||||
return (id) => {
|
||||
return config.devShowArtistPage
|
||||
return config.devShowArtistPage && id !== config.variousArtistsId
|
||||
? `/artist/${id}/show`
|
||||
: `/album?filter={"artist_id":"${id}"}&order=ASC&sort=maxYear&displayedFilters={"compilation":true}&perPage=${perPage}`
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ const defaultConfig = {
|
||||
version: 'dev',
|
||||
firstTime: false,
|
||||
baseURL: '',
|
||||
variousArtistsId: '03b645ef2100dfc42fa9785ea3102295', // See consts.VariousArtistsID in consts.go
|
||||
// Login backgrounds from https://unsplash.com/collections/1065384/music-wallpapers
|
||||
loginBackgroundURL: 'https://source.unsplash.com/collection/1065384/1600x900',
|
||||
enableTranscodingConfig: true,
|
||||
|
||||
Reference in New Issue
Block a user