Skip to content

Commit

Permalink
Allow homepage to be active in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed Oct 29, 2024
1 parent 62d815f commit 5d04f36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/components/navigation/sidemenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
let options = $derived(
destinations.map((destination) => ({
...destination,
active: rootPathname && destination.href.includes(rootPathname)
active:
(rootPathname && destination.href.includes(rootPathname)) ||
(!rootPathname && destination.href === `/${network}`)
}))
);
</script>
Expand Down

0 comments on commit 5d04f36

Please sign in to comment.