From 4f83a856a31f10c5451058a5bf9ebe7c8021bd34 Mon Sep 17 00:00:00 2001 From: ginifizz Date: Tue, 23 May 2023 12:15:32 +0200 Subject: [PATCH] fix: preheader con link --- src/components/PreheaderCon.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/PreheaderCon.tsx b/src/components/PreheaderCon.tsx index 34e76db90..d3e876dd5 100644 --- a/src/components/PreheaderCon.tsx +++ b/src/components/PreheaderCon.tsx @@ -5,10 +5,11 @@ import { useLocation } from '@reach/router'; import Button from './common/Button'; const PreheaderCon: React.ComponentType = () => { - const { origin } = useLocation(); + const { href } = useLocation(); + const url = new URL(href); return ( - +
Api Platform Conference