mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
fix: removed dashboard from breadcrumb
This commit is contained in:
parent
08e00d0991
commit
c9a7e4aea5
1 changed files with 1 additions and 4 deletions
|
|
@ -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]}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue