mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix url search in hash
This commit is contained in:
parent
a74ddbb5ca
commit
9b884f1924
3 changed files with 32 additions and 3 deletions
|
@ -10,6 +10,7 @@ import datetime from '../scripts/datetime';
|
|||
import DirectoryBrowser from '../components/directorybrowser/directorybrowser';
|
||||
import dialogHelper from '../components/dialogHelper/dialogHelper';
|
||||
import itemIdentifier from '../components/itemidentifier/itemidentifier';
|
||||
import { getLocationSearch } from '../utils/url.ts';
|
||||
|
||||
export function getCurrentUser() {
|
||||
return window.ApiClient.getCurrentUser(false);
|
||||
|
@ -112,7 +113,7 @@ export function navigate(url, preserveQueryString) {
|
|||
throw new Error('url cannot be null or empty');
|
||||
}
|
||||
|
||||
const queryString = window.location.search;
|
||||
const queryString = getLocationSearch();
|
||||
|
||||
if (preserveQueryString && queryString) {
|
||||
url += queryString;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue