diff --git a/ui/src/components/topbar/SectionCrumb.vue b/ui/src/components/topbar/SectionCrumb.vue index 408e940e1..718024949 100644 --- a/ui/src/components/topbar/SectionCrumb.vue +++ b/ui/src/components/topbar/SectionCrumb.vue @@ -29,7 +29,8 @@ useLiveResource("tasks", () => void store.load(), 5000); const links = computed(() => navTree(props.hidden).flatMap((node): NavEntry[] => (node.kind === "link" ? [node.entry] : [])), ); -const activePath = computed(() => activeNavPath(route.path)); +// Detail routes carry the primary destination they belong to in meta.navPath. +const activePath = computed(() => (typeof route.meta.navPath === "string" ? route.meta.navPath : activeNavPath(route.path))); const current = computed(() => links.value.find((entry) => entry.path === activePath.value)); const attention = computed(() => { const counts = summary.value?.statuses ?? {};