From 42b0b01a4ee29b75e5aca556ffa8198726496b7c Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Thu, 7 Jan 2021 16:51:20 -0500 Subject: [PATCH] Merge pull request #2293 from thornbill/wrong-latest-tab Fix latest tab links for tv and music (cherry picked from commit e5531c363bbd8b16da869ce8af980a68b10beb0b) Signed-off-by: Joshua M. Boniface --- 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; } }