fix: removed dashboard from breadcrumb

This commit is contained in:
Anish Sarkar 2026-01-20 16:42:10 +05:30
parent 08e00d0991
commit c9a7e4aea5

View file

@ -76,10 +76,7 @@ export function DashboardBreadcrumb() {
const segments = path.split("/").filter(Boolean);
const breadcrumbs: BreadcrumbItemInterface[] = [];
// Always start with Dashboard
breadcrumbs.push({ label: t("dashboard"), href: "/dashboard" });
// Handle search space
// Handle search space (start directly with search space, skip "Dashboard")
if (segments[0] === "dashboard" && segments[1]) {
// Use the actual search space name if available, otherwise fall back to the ID
const searchSpaceLabel = searchSpace?.name || `${t("search_space")} ${segments[1]}`;