Merge pull request #1 from pennyteenycat/AW-489-from-old-site

AW-489-from-old-site
This commit is contained in:
pennyteenycat 2025-06-30 23:43:02 +02:00 committed by GitHub
commit 60a08f1f45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,9 +68,10 @@ export async function GET(req: NextRequest) {
const fbPixels = searchParams.get("fb_pixels"); const fbPixels = searchParams.get("fb_pixels");
const productPrice = searchParams.get("price"); const productPrice = searchParams.get("price");
const currency = searchParams.get("currency"); const currency = searchParams.get("currency");
const nextUrl = searchParams.get("nextUrl");
const redirectUrl = new URL( const redirectUrl = new URL(
`${ROUTES.payment()}`, `${nextUrl || ROUTES.payment()}`,
process.env.NEXT_PUBLIC_APP_URL || "" process.env.NEXT_PUBLIC_APP_URL || ""
); );
if (productId) redirectUrl.searchParams.set("productId", productId); if (productId) redirectUrl.searchParams.set("productId", productId);