diff --git a/web/src/components/sidebar/SidebarTab.svelte b/web/src/components/sidebar/SidebarTab.svelte index 36e8db53..bc3578f5 100644 --- a/web/src/components/sidebar/SidebarTab.svelte +++ b/web/src/components/sidebar/SidebarTab.svelte @@ -13,7 +13,10 @@ let tab: HTMLElement; - $: isTabActive = $page.url.pathname === tabLink; + $: currentTab = $page.url.pathname.split('/')[1]; + $: baseTabPath = tabLink.split('/')[1] + + $: isTabActive = currentTab === baseTabPath; const showTab = (e: HTMLElement | undefined) => { if (e) {