Merge pull request #2293 from thornbill/wrong-latest-tab

Fix latest tab links for tv and music
This commit is contained in:
Bill Thornton 2021-01-07 16:51:20 -05:00 committed by GitHub
commit e5531c363b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}