Fix url search in hash
This commit is contained in:
parent
a74ddbb5ca
commit
9b884f1924
3 changed files with 32 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue