diff --git a/apps/website/src/components/navigation.astro b/apps/website/src/components/navigation.astro index 99fd7de0..345b3937 100644 --- a/apps/website/src/components/navigation.astro +++ b/apps/website/src/components/navigation.astro @@ -9,6 +9,8 @@ const optimizedLogo = await getImage({ height: 51, format: "webp", }); + +const isContact = Astro.url.pathname === "/contact" ---
@@ -110,8 +108,8 @@ const optimizedLogo = await getImage({ data-navhidden="true" id="book-a-call-action" class="invisible w-fit font-medium h-[39px] items-center px-4 py-2 rounded-md text-base text-center whitespace-nowrap bg-[#545664] text-[#ffffff] hover:opacity-90" - href="/#book-a-call-section" - > + href={isContact ? "/#book-a-call-section" : "#book-a-call-section"} + > Book a call @@ -153,7 +151,8 @@ const optimizedLogo = await getImage({ text-base text-center whitespace-nowrap bg-[#545664] text-[#ffffff] hover:opacity-90" - href="/#book-a-call-section">Book a callBook a call