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; });