From e7cb460f9bcc7569a276515fb75d7da3cf5f3e35 Mon Sep 17 00:00:00 2001 From: Admin Date: Tue, 31 Mar 2026 23:26:57 +0500 Subject: [PATCH] fix(payments): point manage subscription to org customer portal --- ui/src/routes/profile/+page.svelte | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ui/src/routes/profile/+page.svelte b/ui/src/routes/profile/+page.svelte index 539896a..cdf5132 100644 --- a/ui/src/routes/profile/+page.svelte +++ b/ui/src/routes/profile/+page.svelte @@ -13,11 +13,8 @@ const emailParam = data.email ? `?customer_email=${encodeURIComponent(data.email)}` : ''; const checkoutMonthly = `https://buy.polar.sh/polar_cl_KtOHiuL2UkiQ4hrojBfINnxlCTORX1A8DeUUO18irVA${emailParam}`; const checkoutAnnual = `https://buy.polar.sh/polar_cl_ylmUnsorSBCgNMhWVG7iO8zVQBnr5cVeLJlW74fm5kG${emailParam}`; - // Customer portal: if user already has a Polar customer ID, link to their portal; - // otherwise fall back to the org page - const manageUrl = data.polarCustomerId - ? `https://polar.sh/purchases` - : `https://polar.sh/libnovel`; + // Customer portal: always link to the org portal — customer logs in with checkout email + const manageUrl = `https://polar.sh/libnovel/portal`; // ── Avatar ─────────────────────────────────────────────────────────────────── let avatarUrl = $state(untrack(() => data.avatarUrl ?? null));