From 7604932b80c5537be7ec32fe1e9047af371d066b Mon Sep 17 00:00:00 2001 From: pgayvallet Date: Tue, 7 Apr 2020 23:01:56 +0200 Subject: [PATCH] add pathname to endpoint url builder methods --- .../applications/endpoint/view/alerts/url_from_query_params.ts | 1 + .../applications/endpoint/view/hosts/url_from_query_params.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/x-pack/plugins/endpoint/public/applications/endpoint/view/alerts/url_from_query_params.ts b/x-pack/plugins/endpoint/public/applications/endpoint/view/alerts/url_from_query_params.ts index e037d000e6e8f..bc287eb2444eb 100644 --- a/x-pack/plugins/endpoint/public/applications/endpoint/view/alerts/url_from_query_params.ts +++ b/x-pack/plugins/endpoint/public/applications/endpoint/view/alerts/url_from_query_params.ts @@ -26,6 +26,7 @@ export function urlFromQueryParams( ): Partial { const search = querystring.stringify(queryParams); return { + pathname: '/alerts', search, }; } diff --git a/x-pack/plugins/endpoint/public/applications/endpoint/view/hosts/url_from_query_params.ts b/x-pack/plugins/endpoint/public/applications/endpoint/view/hosts/url_from_query_params.ts index 225aad8cab020..0f6795d01f2e6 100644 --- a/x-pack/plugins/endpoint/public/applications/endpoint/view/hosts/url_from_query_params.ts +++ b/x-pack/plugins/endpoint/public/applications/endpoint/view/hosts/url_from_query_params.ts @@ -12,6 +12,7 @@ export function urlFromQueryParams( ): Partial { const search = querystring.stringify(queryParams); return { + pathname: '/hosts', search, }; }