Skip to content

Commit

Permalink
Merge branch 'main' into chore/examples-to-module
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored Sep 13, 2022
2 parents 6776e7b + 234057b commit ddf7c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/blog/src/components/HeaderLink.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export interface Props extends astroHTML.JSX.AnchorHTMLAttributes {}
const { href, class: className, ...props } = Astro.props;
const isActive = href === Astro.url.pathname;
const isActive = href === Astro.url.pathname.replace(/\/$/, '');
---

<a href={href} class:list={[className, { active: isActive }]} {...props}>
Expand Down

0 comments on commit ddf7c39

Please sign in to comment.