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