From dd82318828b7b88d94a7a79d280cd1a234507ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20F=C3=B6rtsch?= Date: Fri, 6 Mar 2026 17:07:08 +0100 Subject: [PATCH] fix nav highlighting by using exact active matching on links Co-Authored-By: Claude Opus 4.6 --- src/routes/__root.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index 48bdf53..41e44ae 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -15,6 +15,7 @@ function NavLink({ to, children }: { to: string; children: React.ReactNode }) { to={to} className={cn('px-2.5 py-1 rounded text-[0.85rem] no-underline transition-colors text-gray-500 hover:bg-gray-100 hover:text-gray-900')} activeProps={{ className: 'bg-gray-100 text-gray-900 font-medium' }} + activeOptions={{ exact: true }} > {children}