AW-489-from-old-site
This commit is contained in:
parent
c6ec726e8d
commit
c97a2170a9
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user