From f7cd0d49347033fcf9b26a34d627ccb9d694b6ab Mon Sep 17 00:00:00 2001 From: Saurav Khdoolia Date: Wed, 10 May 2023 11:34:16 +0530 Subject: [PATCH] [Fix]: Alert Channels breadcrumbs (#2669) * fix: wrong routes in route constants file * fix: add channels name in beradcrumb map --------- Co-authored-by: Srikanth Chekuri Co-authored-by: Palash Gupta --- frontend/src/constants/routes.ts | 4 ++-- frontend/src/container/TopNav/Breadcrumbs/index.tsx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/constants/routes.ts b/frontend/src/constants/routes.ts index c596918129..b5a92b3a0e 100644 --- a/frontend/src/constants/routes.ts +++ b/frontend/src/constants/routes.ts @@ -16,8 +16,8 @@ const ROUTES = { LIST_ALL_ALERT: '/alerts', ALERTS_NEW: '/alerts/new', ALL_CHANNELS: '/settings/channels', - CHANNELS_NEW: '/setting/channels/new', - CHANNELS_EDIT: '/setting/channels/edit/:id', + CHANNELS_NEW: '/settings/channels/new', + CHANNELS_EDIT: '/settings/channels/:id', ALL_ERROR: '/exceptions', ERROR_DETAIL: '/error-detail', VERSION: '/status', diff --git a/frontend/src/container/TopNav/Breadcrumbs/index.tsx b/frontend/src/container/TopNav/Breadcrumbs/index.tsx index a4ada700d5..05304bc1e3 100644 --- a/frontend/src/container/TopNav/Breadcrumbs/index.tsx +++ b/frontend/src/container/TopNav/Breadcrumbs/index.tsx @@ -9,6 +9,7 @@ const breadcrumbNameMap = { [ROUTES.SERVICE_MAP]: 'Service Map', [ROUTES.USAGE_EXPLORER]: 'Usage Explorer', [ROUTES.INSTRUMENTATION]: 'Get Started', + [ROUTES.ALL_CHANNELS]: 'Channels', [ROUTES.SETTINGS]: 'Settings', [ROUTES.DASHBOARD]: 'Dashboard', [ROUTES.ALL_ERROR]: 'Exceptions',