From 12145fcaac09b13e128d5f5cade54e2bc746ed3d Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Mon, 16 Oct 2023 17:31:26 -0400 Subject: [PATCH] [8.11] [Enterprise Search] fix: use full path for search apps nav url (#169014) (#169028) # Backport This will backport the following commits from `main` to `8.11`: - [[Enterprise Search] fix: use full path for search apps nav url (#169014)](https://github.com/elastic/kibana/pull/169014) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Rodney Norris --- .../public/applications/shared/layout/nav.test.tsx | 6 +++--- .../public/applications/shared/layout/nav.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/layout/nav.test.tsx b/x-pack/plugins/enterprise_search/public/applications/shared/layout/nav.test.tsx index c67a3f877d720..f68a2eee1c5af 100644 --- a/x-pack/plugins/enterprise_search/public/applications/shared/layout/nav.test.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/shared/layout/nav.test.tsx @@ -63,7 +63,7 @@ describe('useEnterpriseSearchContentNav', () => { id: 'applications', items: [ { - href: '/app/enterprise_search/applications', + href: '/app/enterprise_search/applications/search_applications', id: 'searchApplications', name: 'Search Applications', }, @@ -226,7 +226,7 @@ describe('useEnterpriseSearchApplicationNav', () => { id: 'applications', items: [ { - href: '/app/enterprise_search/applications', + href: '/app/enterprise_search/applications/search_applications', id: 'searchApplications', name: 'Search Applications', }, @@ -413,7 +413,7 @@ describe('useEnterpriseSearchAnalyticsNav', () => { id: 'applications', items: [ { - href: '/app/enterprise_search/applications', + href: '/app/enterprise_search/applications/search_applications', id: 'searchApplications', name: 'Search Applications', }, diff --git a/x-pack/plugins/enterprise_search/public/applications/shared/layout/nav.tsx b/x-pack/plugins/enterprise_search/public/applications/shared/layout/nav.tsx index ed2730a217c72..8fe9c36766c60 100644 --- a/x-pack/plugins/enterprise_search/public/applications/shared/layout/nav.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/shared/layout/nav.tsx @@ -78,7 +78,7 @@ export const useEnterpriseSearchNav = () => { }), ...generateNavLink({ shouldNotCreateHref: true, - to: APPLICATIONS_PLUGIN.URL, + to: APPLICATIONS_PLUGIN.URL + SEARCH_APPLICATIONS_PATH, }), }, {