diff --git a/src/_components/activities/ActivityDetails.svelte b/src/_components/activities/ActivityDetails.svelte index 4e1108067..19047897f 100644 --- a/src/_components/activities/ActivityDetails.svelte +++ b/src/_components/activities/ActivityDetails.svelte @@ -84,9 +84,9 @@ (x) => x.value === sessionLocation?.destination )?.label; - let edit = $page.query.get('edit'); - let isNew = $page.query.get('isNew'); - let isUpdated = $page.query.get('isUpdated'); + let edit = $page.url.searchParams.get('edit'); + let isNew = $page.url.searchParams.get('isNew'); + let isUpdated = $page.url.searchParams.get('isUpdated'); let favoriteDisabled = false; @@ -147,7 +147,7 @@ isInWindow = inSession; if (!inSession) { - const join = $page.query.get('join'); + const join = $page.url.searchParams.get('join'); if (join) isInWindow = true; } }, 1000); diff --git a/src/_components/activities/Card.svelte b/src/_components/activities/Card.svelte index 5425e6f7e..f5eea3871 100644 --- a/src/_components/activities/Card.svelte +++ b/src/_components/activities/Card.svelte @@ -104,7 +104,7 @@ hasExpired = dayjs().isAfter(currentEndTime); if (!inSession) { - const join = $page.query.get('join'); + const join = $page.url.searchParams.get('join'); if (join) isInWindow = true; } }, 1000); diff --git a/src/routes/activities/create/cfp.svelte b/src/routes/activities/create/cfp.svelte index 944adad1b..7b66436ea 100644 --- a/src/routes/activities/create/cfp.svelte +++ b/src/routes/activities/create/cfp.svelte @@ -40,7 +40,8 @@ import Create from './index.svelte'; onMount(() => { - if (!$page.query.has('event')) window.history.replaceState(null, null, `?event=${eventId}`); + if (!$page.url.searchParams.has('event')) + window.history.replaceState(null, null, `?event=${eventId}`); }); const metaTags = ((title = `THAT Conference Texas and Wisconsin call for speakers.`) => ({ diff --git a/src/routes/login-redirect.svelte b/src/routes/login-redirect.svelte index 64509555d..8eac79343 100644 --- a/src/routes/login-redirect.svelte +++ b/src/routes/login-redirect.svelte @@ -1,7 +1,9 @@
diff --git a/src/routes/promo/index.svelte b/src/routes/promo/index.svelte index cfa875694..7da5489be 100644 --- a/src/routes/promo/index.svelte +++ b/src/routes/promo/index.svelte @@ -26,7 +26,7 @@ }) }))(); - const eventId = $page.query.get('eventId'); + const eventId = $page.url.searchParams.get('eventId'); const { send } = getContext('cart'); let event;