Skip to content

Commit

Permalink
fix path matching
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSunshyne committed Aug 8, 2023
1 parent 41b793a commit 785317b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MegaMenu.astro
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const links: TMenu = {
!!links[item].href.includes("https") ? "_blank" : "_self"
}
>
{currentPath === links[item].href && (
{currentPath.includes(links[item].href) && (
<span
style="view-transition-name: menubar"
class="absolute bottom-0 left-0 right-0 h-1 rounded-full bg-slate-900 dark:bg-slate-100"
Expand Down

0 comments on commit 785317b

Please sign in to comment.