1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #5571 from grafixeyehero/Fix--Search-for-tab-library

Fix search for tab library in experimental layout
This commit is contained in:
Bill Thornton 2024-07-15 14:19:27 -04:00 committed by GitHub
commit b70f42bd5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 70 additions and 24 deletions

View file

@ -637,7 +637,7 @@ class AppRouter {
}
if (item.CollectionType == CollectionType.Livetv) {
return '#/livetv.html';
return `#/livetv.html?collectionType=${item.CollectionType}`;
}
if (item.Type === 'Genre') {
@ -676,7 +676,7 @@ class AppRouter {
if (context !== 'folders' && !itemHelper.isLocalItem(item)) {
if (item.CollectionType == CollectionType.Movies) {
url = '#/movies.html?topParentId=' + item.Id;
url = `#/movies.html?topParentId=${item.Id}&collectionType=${item.CollectionType}`;
if (options && options.section === 'latest') {
url += '&tab=1';
@ -686,7 +686,7 @@ class AppRouter {
}
if (item.CollectionType == CollectionType.Tvshows) {
url = '#/tv.html?topParentId=' + item.Id;
url = `#/tv.html?topParentId=${item.Id}&collectionType=${item.CollectionType}`;
if (options && options.section === 'latest') {
url += '&tab=1';
@ -696,7 +696,7 @@ class AppRouter {
}
if (item.CollectionType == CollectionType.Music) {
url = '#/music.html?topParentId=' + item.Id;
url = `#/music.html?topParentId=${item.Id}&collectionType=${item.CollectionType}`;
if (options?.section === 'latest') {
url += '&tab=1';