diff --git a/src/components/NavItem.astro b/src/components/NavItem.astro --- a/src/components/NavItem.astro +++ b/src/components/NavItem.astro @@ -1,6 +1,6 @@ --- const { href, label } = Astro.props; -const pathname = new URL(Astro.request.url).pathname; -const isCurrent = href === pathname; +const callerUrl = new URL(Astro.url.pathname, import.meta.env.SITE).href; +const tabUrl = new URL(href, import.meta.env.SITE).href; --- -{label} +{label} diff --git a/src/components/Navigation.astro b/src/components/Navigation.astro --- a/src/components/Navigation.astro +++ b/src/components/Navigation.astro @@ -7,20 +7,3 @@ - - diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -2,7 +2,6 @@ --- import "../styles/global.css"; import Header from "../components/Header.astro"; import Footer from "../components/Footer.astro"; -import { ClientRouter } from "astro:transitions"; const { pageTitle } = Astro.props; --- @@ -23,4 +22,3 @@