diff --git a/artifacts/toolrate/src/components/layout.tsx b/artifacts/toolrate/src/components/layout.tsx
index 80db35f..8fb5b6f 100644
--- a/artifacts/toolrate/src/components/layout.tsx
+++ b/artifacts/toolrate/src/components/layout.tsx
@@ -18,6 +18,10 @@ export function Layout({ children }: { children: React.ReactNode }) {
...(isAdmin ? [{ href: "/admin/redundancy", label: "Redundancy", icon: AlertTriangle }] : []),
];
+ const activeLink = links.find(
+ (link) => location === link.href || (link.href !== "/" && location.startsWith(link.href)),
+ );
+
return (