diff --git a/packages/astro/src/components/HeaderNav.astro b/packages/astro/src/components/HeaderNav.astro index 96daa5f..861240c 100644 --- a/packages/astro/src/components/HeaderNav.astro +++ b/packages/astro/src/components/HeaderNav.astro @@ -10,12 +10,12 @@ const routes = [ ]; // because of annoying differences between dev and build modes, due to this // behavior (https://github.com/withastro/astro/issues/5630), always remove - // any trailing slash so currentPath can match the paths above + // any trailing slash so currentPage can match the pages above const fullPath = Astro.url.pathname.replace(/\/$/, ""); -const currentPath = fullPath.slice(fullPath.lastIndexOf("/") + 1); +const currentPage = fullPath.slice(fullPath.lastIndexOf("/") + 1); --- -