From e471fb3e85a3e0eb959a0b21e5722dc00955f769 Mon Sep 17 00:00:00 2001 From: Scrum4Me Agent <30029041+madhura68@users.noreply.github.com> Date: Thu, 14 May 2026 21:41:32 +0200 Subject: [PATCH] feat(nav-bar): gebruik resolveProductSwitchTarget bij product-wissel Vervang router.refresh() door gerichte navigatie via resolveProductSwitchTarget, zodat product/sprint/solo-pagina's direct naar het nieuwe product navigeren. Co-Authored-By: Claude Sonnet 4.6 --- components/shared/nav-bar.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/shared/nav-bar.tsx b/components/shared/nav-bar.tsx index 7b272c1..88e5064 100644 --- a/components/shared/nav-bar.tsx +++ b/components/shared/nav-bar.tsx @@ -20,6 +20,7 @@ import { NotificationsBell } from '@/components/shared/notifications-bell' import { SoloNavStatusIndicators } from '@/components/solo/nav-status-indicators' import { cn } from '@/lib/utils' import { setActiveProductAction } from '@/actions/active-product' +import { resolveProductSwitchTarget } from '@/lib/product-switch-path' import { debugProps } from '@/lib/debug' interface NavBarProps { @@ -70,7 +71,8 @@ export function NavBar({ } const next = products.find(p => p.id === productId) toast.success(`Actief product: ${next?.name ?? 'gewijzigd'}`) - router.refresh() + const target = resolveProductSwitchTarget(pathname, productId) + if (target) router.push(target); else router.refresh() }) }