From 072fa26544a54f68ab2e12748e0fdb765f092e2c Mon Sep 17 00:00:00 2001 From: Vantz Stockwell Date: Sun, 15 Feb 2026 02:17:33 -0500 Subject: [PATCH] fix: Admin Home nav highlight stuck when visiting child routes /admin/servers.startsWith('/admin') was true, so both Admin Home and Server Fleet highlighted simultaneously. Now /admin uses exact match like / does. Co-Authored-By: Claude Opus 4.6 --- frontend/src/components/layout/DashboardLayout.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/layout/DashboardLayout.vue b/frontend/src/components/layout/DashboardLayout.vue index ad9b5d4..46d0643 100644 --- a/frontend/src/components/layout/DashboardLayout.vue +++ b/frontend/src/components/layout/DashboardLayout.vue @@ -55,7 +55,7 @@ const adminNavItems = [ ] function isActive(path: string): boolean { - if (path === '/') return route.path === '/' + if (path === '/' || path === '/admin') return route.path === path return route.path.startsWith(path) }