diff --git a/frontend/src/lib/components/DashboardNav.svelte b/frontend/src/lib/components/DashboardNav.svelte index 73ef92a..020397e 100644 --- a/frontend/src/lib/components/DashboardNav.svelte +++ b/frontend/src/lib/components/DashboardNav.svelte @@ -2,14 +2,15 @@ import { page } from '$app/stores'; // determine active tab based on current route - $: currentPath = $page.url.pathname; + // normalize path to handle trailing slashes + $: currentPath = $page.url.pathname.replace(/\/$/, '') || '/'; -