diff --git a/src/lib/auth.ts b/src/lib/auth.ts index c528db1a3..5da98ab8e 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -265,6 +265,14 @@ export function checkout({ planId, promoCodeId, planType, mode, currency, gclid mode && params.set('mode', mode ? mode : 'subscription'); gclid && params.set('gclid', gclid); + const currentParams = new URLSearchParams(globalThis.location.search); + const celloProductId = currentParams.get('productId'); + const celloUcc = currentParams.get('ucc'); + const celloN = currentParams.get('celloN'); + if (celloProductId) params.set('productId', celloProductId); + if (celloUcc) params.set('ucc', celloUcc); + if (celloN) params.set('celloN', celloN); + window.location.href = AUTH_FLOW_URL + `${pathname}?${params.toString()}`; } diff --git a/src/pages/specialoffer.tsx b/src/pages/specialoffer.tsx index dd8945964..7db0a67d5 100644 --- a/src/pages/specialoffer.tsx +++ b/src/pages/specialoffer.tsx @@ -1,4 +1,5 @@ import Layout from '@/components/layout/Layout'; +import Script from 'next/script'; import { PromoCodeName } from '@/lib/types'; import Footer from '@/components/layout/footers/Footer'; @@ -83,6 +84,7 @@ function SpecialOffer({ return ( +