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

Fix: Search for tab library

This commit is contained in:
grafixeyehero 2024-05-21 00:19:28 +03:00
parent f57b3a6355
commit 69afc01d44
3 changed files with 71 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';