diff --git a/astro/src/components/pages/App.tsx b/astro/src/components/pages/App.tsx index e55c161..d5ee6c6 100644 --- a/astro/src/components/pages/App.tsx +++ b/astro/src/components/pages/App.tsx @@ -11,6 +11,7 @@ import clsx from 'clsx'; const FORM_URL_ORGANIZER_APPLICATION = "https://forms.hackclub.com/t/8L51MzWyrHus"; const FORM_URL_RSVP = "https://forms.hackclub.com/t/a3QSt8MuvHus"; +const FORM_URL_SIGN_UP = "https://forms.hackclub.com/campfire-signup"; function FlagshipCTA({ className, compact, maxWidth }: { className?: string; compact?: boolean; maxWidth?: boolean }) { return ( @@ -62,6 +63,14 @@ function App() { return; } + // Redirect with r parameter to signup form + const urlParams = new URLSearchParams(window.location.search); + const rParam = urlParams.get('r'); + if (rParam) { + window.location.href = `${FORM_URL_SIGN_UP}?r=${encodeURIComponent(rParam)}`; + return; + } + document.addEventListener("scroll", () => { setScrollY(window.scrollY); }); @@ -245,12 +254,12 @@ function App() {