mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Fleet] Preserve search when syncing hash router and urls (#104310)
This commit is contained in:
parent
b0b0584b55
commit
e3c2dfc9b4
2 changed files with 2 additions and 2 deletions
|
@ -221,7 +221,7 @@ export const FleetAppContext: React.FC<{
|
|||
const unlistenParentHistory = history.listen(() => {
|
||||
const newHash = createHashHistory();
|
||||
if (newHash.location.pathname !== routerHistoryInstance.location.pathname) {
|
||||
routerHistoryInstance.replace(newHash.location.pathname);
|
||||
routerHistoryInstance.replace(newHash.location.pathname + newHash.location.search || '');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -196,7 +196,7 @@ export const IntegrationsAppContext: React.FC<{
|
|||
const unlistenParentHistory = history.listen(() => {
|
||||
const newHash = createHashHistory();
|
||||
if (newHash.location.pathname !== routerHistoryInstance.location.pathname) {
|
||||
routerHistoryInstance.replace(newHash.location.pathname);
|
||||
routerHistoryInstance.replace(newHash.location.pathname + newHash.location.search || '');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue