From 5de62a95b8acf0b3396e0e72c0229a5b06f77329 Mon Sep 17 00:00:00 2001 From: Shahzad Date: Mon, 9 Jan 2023 13:56:17 +0100 Subject: [PATCH] [Synthetics] Fix nav path (#148428) Fixes https://github.com/elastic/kibana/issues/145433 --- .../components/monitors_page/hooks/use_breadcrumbs.ts | 2 +- x-pack/plugins/synthetics/public/plugin.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitors_page/hooks/use_breadcrumbs.ts b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitors_page/hooks/use_breadcrumbs.ts index 7454edfb32c1..70065d99dadb 100644 --- a/x-pack/plugins/synthetics/public/apps/synthetics/components/monitors_page/hooks/use_breadcrumbs.ts +++ b/x-pack/plugins/synthetics/public/apps/synthetics/components/monitors_page/hooks/use_breadcrumbs.ts @@ -17,7 +17,7 @@ export const useMonitorListBreadcrumbs = (extraCrumbs?: Array<{ text: string; hr useBreadcrumbs([ { text: MONITOR_MANAGEMENT_CRUMB, - href: `${appPath}/${MONITORS_ROUTE}`, + href: `${appPath}${MONITORS_ROUTE}`, }, ...(extraCrumbs ?? []), ]); diff --git a/x-pack/plugins/synthetics/public/plugin.ts b/x-pack/plugins/synthetics/public/plugin.ts index ef8be0a72b31..e82daf4bd781 100644 --- a/x-pack/plugins/synthetics/public/plugin.ts +++ b/x-pack/plugins/synthetics/public/plugin.ts @@ -273,7 +273,7 @@ function registerSyntheticsRoutesWithNavigation( }), app: 'synthetics', path: OVERVIEW_ROUTE, - matchFullPath: true, + matchFullPath: false, ignoreTrailingSlash: true, }, ],