Skip to content

Commit 88727f0

Browse files
committed
FE: Fix external page navigation issue
SvelteKit's goto(url) can't navigate to third party pages anymore (makes sense) sveltejs/kit#11207
1 parent 7943d4a commit 88727f0

File tree

1 file changed

+2
-3
lines changed
  • frontend/src/routes/(platform)/dashboard/workspace/[workspaceUuid]/settings/billing

1 file changed

+2
-3
lines changed

frontend/src/routes/(platform)/dashboard/workspace/[workspaceUuid]/settings/billing/+page.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import InputField from "$lib/funabashi/input-fields/InputField.svelte";
2424
import type { InputFieldValidation } from "$lib/funabashi/types";
2525
import Anchor from "$lib/funabashi/typography/Anchor.svelte";
26-
import { goto } from "$lib/navigation";
2726
import {
2827
createBillingPortalSession,
2928
createCheckoutSession,
@@ -60,7 +59,7 @@
6059
return;
6160
}
6261
const { url } = response.data;
63-
await goto(url);
62+
window.location.href = url;
6463
}
6564
6665
async function submitRedeemCoupon() {
@@ -100,7 +99,7 @@
10099
return;
101100
}
102101
const { url } = response.data;
103-
await goto(url);
102+
window.location.href = url;
104103
}
105104
106105
// Unpaid user:

0 commit comments

Comments
 (0)