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:
parent
f57b3a6355
commit
69afc01d44
3 changed files with 71 additions and 24 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue