diff --git a/apps/warp-protocol-landing/src/App.tsx b/apps/warp-protocol-landing/src/App.tsx index ba973d44..e0c1a80d 100644 --- a/apps/warp-protocol-landing/src/App.tsx +++ b/apps/warp-protocol-landing/src/App.tsx @@ -8,6 +8,12 @@ import Brand from 'pages/brand/Brand'; export const APP_URL = 'https://app.warp.money'; +function baseUrl(url: string) { + const parsedUrl = new URL(url); + let baseUrl = parsedUrl.origin; + return baseUrl; +} + const App = () => { const topBarRef = useRef(null); const featuresRef = useRef(null); @@ -58,11 +64,11 @@ const App = () => { }, []); const onPrivacyPolicyClick = useCallback(() => { - window.open(`${document.location.href}pdfs/privacy_policy.pdf`); + window.open(`${baseUrl(document.location.href)}/pdfs/privacy_policy.pdf`); }, []); const onTermsClick = useCallback(() => { - window.open(`${document.location.href}pdfs/terms_of_use.pdf`); + window.open(`${baseUrl(document.location.href)}/pdfs/terms_of_use.pdf`); }, []); return ( diff --git a/apps/warp-protocol-landing/src/bottom-bar/DesktopBottomBar.tsx b/apps/warp-protocol-landing/src/bottom-bar/DesktopBottomBar.tsx index 6a574cd6..acf34a1c 100644 --- a/apps/warp-protocol-landing/src/bottom-bar/DesktopBottomBar.tsx +++ b/apps/warp-protocol-landing/src/bottom-bar/DesktopBottomBar.tsx @@ -23,7 +23,6 @@ type DesktopBottomBarProps = UIElementProps & { export const DesktopBottomBar = (props: DesktopBottomBarProps) => { const { onHomeClick, - onFeaturesClick, className, onDocsClick, onContactClick, @@ -49,14 +48,6 @@ export const DesktopBottomBar = (props: DesktopBottomBarProps) => { > Home -