const { href, class: className, ...props } = Astro.props;
let pathnameWithoutSlash = Astro.url.pathname.replace(/\/$/, "");
if (href === "/" && pathnameWithoutSlash === "") {
pathnameWithoutSlash = "/";
}
const isActive = href === pathnameWithoutSlash;
const { href, class: className, ...props } = Astro.props;
let pathnameWithoutSlash = Astro.url.pathname.replace(/\/$/, "");
if (href === "/" && pathnameWithoutSlash === "") {
pathnameWithoutSlash = "/";
}
const isActive = href === pathnameWithoutSlash;