From b8230dc14d419537841a0052dd80cfcbde6e8931 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Mon, 22 Jan 2024 08:35:03 -0800 Subject: [PATCH] Use window.location rather than goto for remaining magic URLs --- src/routes/auth/oauth2/failure/+page.svelte | 6 +----- src/routes/auth/oauth2/success/+page.svelte | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/routes/auth/oauth2/failure/+page.svelte b/src/routes/auth/oauth2/failure/+page.svelte index d834c65fd..0149ade18 100644 --- a/src/routes/auth/oauth2/failure/+page.svelte +++ b/src/routes/auth/oauth2/failure/+page.svelte @@ -10,11 +10,7 @@ if (!project) { reject('no-project'); } - // this timeout is needed because goto does not - // throw an exception if the redirect does not work - setTimeout(() => reject('timeout'), 500); - // goto will resolve on successful redirect - goto(link).then(resolve); + window.location = link; }); diff --git a/src/routes/auth/oauth2/success/+page.svelte b/src/routes/auth/oauth2/success/+page.svelte index 449ca94a3..c8ff9acbc 100644 --- a/src/routes/auth/oauth2/success/+page.svelte +++ b/src/routes/auth/oauth2/success/+page.svelte @@ -10,11 +10,7 @@ if (!project) { reject('no-project'); } - // this timeout is needed because goto does not - // throw an exception if the redirect does not work - setTimeout(() => reject('timeout'), 500); - // goto will resolve on successful redirect - goto(link).then(resolve); + window.location = link; });