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

Merge pull request #3551 from thornbill/fix-location-search

This commit is contained in:
Bill Thornton 2022-04-07 16:42:19 -04:00 committed by GitHub
commit b8a69b892c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 3 deletions

View file

@ -12,6 +12,7 @@ import Dashboard from '../scripts/clientUtils';
import ServerConnections from './ServerConnections';
import alert from './alert';
import reactControllerFactory from './reactControllerFactory';
import { getLocationSearch } from '../utils/url.ts';
class AppRouter {
allRoutes = [];
@ -120,7 +121,7 @@ class AppRouter {
const regexS = '[\\?&]' + name + '=([^&#]*)';
const regex = new RegExp(regexS, 'i');
const results = regex.exec(url || window.location.search);
const results = regex.exec(url || getLocationSearch());
if (results == null) {
return '';
} else {