From a60b6a0c27edfd861feb7d0c58244e51930eacfb Mon Sep 17 00:00:00 2001 From: Xavier Mouligneau <189600+XavierM@users.noreply.github.com> Date: Thu, 12 Sep 2019 12:22:22 -0400 Subject: [PATCH] fix redirect to maintain search query string (#45184) (#45489) --- .../ml_host_conditional_container.tsx | 7 ++++++- .../ml_network_conditional_container.tsx | 7 ++++++- .../plugins/siem/public/pages/hosts/index.tsx | 18 ++++++++++++++---- .../siem/public/pages/network/index.tsx | 7 ++++++- 4 files changed, 32 insertions(+), 7 deletions(-) diff --git a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/ml_host_conditional_container.tsx b/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/ml_host_conditional_container.tsx index 9921be26923b3..f2e60a5fb86e9 100644 --- a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/ml_host_conditional_container.tsx +++ b/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/ml_host_conditional_container.tsx @@ -80,7 +80,12 @@ export const MlHostConditionalContainer = React.memo(({ } }} /> - + ( + + )} + /> )); diff --git a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/ml_network_conditional_container.tsx b/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/ml_network_conditional_container.tsx index a24e1fc098238..200a00b6dd562 100644 --- a/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/ml_network_conditional_container.tsx +++ b/x-pack/legacy/plugins/siem/public/components/ml/conditional_links/ml_network_conditional_container.tsx @@ -80,7 +80,12 @@ export const MlNetworkConditionalContainer = React.memo - + ( + + )} + /> )); diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/index.tsx b/x-pack/legacy/plugins/siem/public/pages/hosts/index.tsx index 36d9826c5d6a6..49d12b8e51a04 100644 --- a/x-pack/legacy/plugins/siem/public/pages/hosts/index.tsx +++ b/x-pack/legacy/plugins/siem/public/pages/hosts/index.tsx @@ -216,11 +216,21 @@ export const HostsContainer = React.memo(({ url }) => ( )} /> - ( + + )} + /> + ( + + )} /> - )} diff --git a/x-pack/legacy/plugins/siem/public/pages/network/index.tsx b/x-pack/legacy/plugins/siem/public/pages/network/index.tsx index f00bc60add5fd..d77c8ef935ad4 100644 --- a/x-pack/legacy/plugins/siem/public/pages/network/index.tsx +++ b/x-pack/legacy/plugins/siem/public/pages/network/index.tsx @@ -25,7 +25,12 @@ export const NetworkContainer = React.memo(() => ( }, }) => } /> - + ( + + )} + /> ));