diff --git a/src/routes/auth/magic-url/+page.svelte b/src/routes/auth/magic-url/+page.svelte index 477b31b41..4c66eb38c 100644 --- a/src/routes/auth/magic-url/+page.svelte +++ b/src/routes/auth/magic-url/+page.svelte @@ -17,7 +17,7 @@ const secret = $page.url.searchParams.get('secret'); await account.updateMagicURLSession(userId, secret); - window.location = `appwrite-callback-${projectId}://${$page.url.search}`; + window.location.href = `appwrite-callback-${projectId}://${$page.url.search}`; }); diff --git a/src/routes/auth/oauth2/failure/+page.svelte b/src/routes/auth/oauth2/failure/+page.svelte index dbd2bcf01..33ad1720a 100644 --- a/src/routes/auth/oauth2/failure/+page.svelte +++ b/src/routes/auth/oauth2/failure/+page.svelte @@ -9,7 +9,7 @@ if (!project) { reject('no-project'); } - window.location = link; + window.location.href = link; }); diff --git a/src/routes/auth/oauth2/success/+page.svelte b/src/routes/auth/oauth2/success/+page.svelte index 37a766a61..42c842c01 100644 --- a/src/routes/auth/oauth2/success/+page.svelte +++ b/src/routes/auth/oauth2/success/+page.svelte @@ -9,7 +9,7 @@ if (!project) { reject('no-project'); } - window.location = link; + window.location.href = link; });