diff --git a/src/components/navbar.astro b/src/components/navbar.astro index 68d60f94a..bf31cc3fd 100644 --- a/src/components/navbar.astro +++ b/src/components/navbar.astro @@ -1,6 +1,9 @@ --- -const currentPagePath = Astro.url.pathname; +import { getPathnameWithoutExtension } from "~/lib/utils"; + +const currentPagePath = getPathnameWithoutExtension(Astro.url); --- +