AW-489-from-old-site

This commit is contained in:
gofnnp 2025-06-30 18:49:07 +04:00
parent c6ec726e8d
commit c97a2170a9

View File

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