Skip to content

Commit 7e3732e

Browse files
committed
fix(breadcrumbs): update discover breadcrumbs to include dashboard list
Signed-off-by: Yulong Ruan <[email protected]>
1 parent 5da6ba2 commit 7e3732e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/plugins/explore/public/application/utils/hooks/use_page_initialization.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ export const useInitPage = () => {
5757
// If user came from a dashboard, show dashboard name as a breadcrumb
5858
if (previousPage && previousPage.meta?.type === 'dashboard') {
5959
breadcrumbs.push({
60-
text: `Dashboard:${previousPage.label}`,
60+
text: 'Dashboard',
61+
onClick: () => {
62+
services.core.application.navigateToApp('dashboards', { path: '#/' });
63+
},
64+
});
65+
breadcrumbs.push({
66+
text: `${previousPage.label}`,
6167
...breadcrumbConfig,
6268
});
6369
}

0 commit comments

Comments
 (0)