From 69cb63a8b0293cc61cc8e21a885047ac4871fcf7 Mon Sep 17 00:00:00 2001 From: lymnyx Date: Sun, 4 Feb 2024 02:27:26 +0100 Subject: [PATCH] Fixes route of most played songs in home (#434). --- .../features/home/routes/home-route.tsx | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/renderer/features/home/routes/home-route.tsx b/src/renderer/features/home/routes/home-route.tsx index ae143b4d..8f67cd0e 100644 --- a/src/renderer/features/home/routes/home-route.tsx +++ b/src/renderer/features/home/routes/home-route.tsx @@ -251,7 +251,16 @@ const HomeRoute = () => { property: 'name', route: { route: AppRoute.LIBRARY_ALBUMS_DETAIL, - slugs: [{ idProperty: 'id', slugProperty: 'albumId' }], + slugs: [ + { + idProperty: + server?.type === ServerType.JELLYFIN && + carousel.itemType === LibraryItem.SONG + ? 'albumId' + : 'id', + slugProperty: 'albumId', + }, + ], }, }, { @@ -272,7 +281,16 @@ const HomeRoute = () => { itemType={carousel.itemType} route={{ route: AppRoute.LIBRARY_ALBUMS_DETAIL, - slugs: [{ idProperty: 'id', slugProperty: 'albumId' }], + slugs: [ + { + idProperty: + server?.type === ServerType.JELLYFIN && + carousel.itemType === LibraryItem.SONG + ? 'albumId' + : 'id', + slugProperty: 'albumId', + }, + ], }} title={{ label: (