Skip to content

Commit

Permalink
FE: Fix external page navigation issue
Browse files Browse the repository at this point in the history
SvelteKit's goto(url) can't navigate to third party pages anymore (makes
sense)

sveltejs/kit#11207
  • Loading branch information
justuswilhelm committed Feb 22, 2024
1 parent a83c542 commit 09a2a2f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -60,7 +59,7 @@
return;
}
const { url } = response.data;
await goto(url);
window.location.href = url;
}
async function submitRedeemCoupon() {
Expand Down Expand Up @@ -100,7 +99,7 @@
return;
}
const { url } = response.data;
await goto(url);
window.location.href = url;
}
// Unpaid user:
Expand Down

0 comments on commit 09a2a2f

Please sign in to comment.