diff --git a/x-pack/solutions/search/plugins/search_solution/search_navigation/public/plugin.ts b/x-pack/solutions/search/plugins/search_solution/search_navigation/public/plugin.ts index ddaf0b059fceb..cdb593767d233 100644 --- a/x-pack/solutions/search/plugins/search_solution/search_navigation/public/plugin.ts +++ b/x-pack/solutions/search/plugins/search_solution/search_navigation/public/plugin.ts @@ -16,6 +16,7 @@ import type { Subscription } from 'rxjs'; import type { ChromeBreadcrumb, ChromeStyle } from '@kbn/core-chrome-browser'; import { i18n } from '@kbn/i18n'; import type { Logger } from '@kbn/logging'; +import { ENTERPRISE_SEARCH_APP_ID } from '@kbn/deeplinks-search'; import type { SearchNavigationPluginSetup, SearchNavigationPluginStart, @@ -129,12 +130,13 @@ export class SearchNavigationPlugin } private getSearchHomeBreadcrumb(): ChromeBreadcrumb { - // TODO: When search_navigation handles solution nav, use the default // home deep link for this breadcrumb's path. + const homeHref = this.coreStart?.chrome.navLinks.get(ENTERPRISE_SEARCH_APP_ID)?.href; return { text: i18n.translate('xpack.searchNavigation.breadcrumbs.home.title', { defaultMessage: 'Elasticsearch', }), + href: homeHref, }; } } diff --git a/x-pack/solutions/search/plugins/search_solution/search_navigation/tsconfig.json b/x-pack/solutions/search/plugins/search_solution/search_navigation/tsconfig.json index a56616b2d6940..947fbd1259509 100644 --- a/x-pack/solutions/search/plugins/search_solution/search_navigation/tsconfig.json +++ b/x-pack/solutions/search/plugins/search_solution/search_navigation/tsconfig.json @@ -15,6 +15,7 @@ "@kbn/logging", "@kbn/serverless", "@kbn/core-plugins-browser", + "@kbn/deeplinks-search", ], "exclude": ["target/**/*"] }