From fa24242a3ebd1d2af74464f74e7b57e41cabeac0 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Sat, 2 Jan 2021 00:23:43 -0500 Subject: [PATCH] Fix latest tab links for tv and music --- src/components/appRouter.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/appRouter.js b/src/components/appRouter.js index c02c7edd32..b03773c430 100644 --- a/src/components/appRouter.js +++ b/src/components/appRouter.js @@ -821,14 +821,20 @@ class AppRouter { url = '#!/tv.html?topParentId=' + item.Id; if (options && options.section === 'latest') { - url += '&tab=2'; + url += '&tab=1'; } return url; } if (item.CollectionType == 'music') { - return '#!/music.html?topParentId=' + item.Id; + url = '#!/music.html?topParentId=' + item.Id; + + if (options?.section === 'latest') { + url += '&tab=1'; + } + + return url; } }