From 09a2a2fc96102194d5a9914f0013a2245b950284 Mon Sep 17 00:00:00 2001 From: Justus Perlwitz Date: Thu, 22 Feb 2024 15:12:59 +0900 Subject: [PATCH] FE: Fix external page navigation issue SvelteKit's goto(url) can't navigate to third party pages anymore (makes sense) https://github.com/sveltejs/kit/pull/11207 --- .../workspace/[workspaceUuid]/settings/billing/+page.svelte | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/routes/(platform)/dashboard/workspace/[workspaceUuid]/settings/billing/+page.svelte b/frontend/src/routes/(platform)/dashboard/workspace/[workspaceUuid]/settings/billing/+page.svelte index 3c883bc38..492e841f5 100644 --- a/frontend/src/routes/(platform)/dashboard/workspace/[workspaceUuid]/settings/billing/+page.svelte +++ b/frontend/src/routes/(platform)/dashboard/workspace/[workspaceUuid]/settings/billing/+page.svelte @@ -23,7 +23,6 @@ import InputField from "$lib/funabashi/input-fields/InputField.svelte"; import type { InputFieldValidation } from "$lib/funabashi/types"; import Anchor from "$lib/funabashi/typography/Anchor.svelte"; - import { goto } from "$lib/navigation"; import { createBillingPortalSession, createCheckoutSession, @@ -60,7 +59,7 @@ return; } const { url } = response.data; - await goto(url); + window.location.href = url; } async function submitRedeemCoupon() { @@ -100,7 +99,7 @@ return; } const { url } = response.data; - await goto(url); + window.location.href = url; } // Unpaid user: