Merge pull request #1 from pennyteenycat/AW-489-from-old-site
AW-489-from-old-site
This commit is contained in:
commit
60a08f1f45
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user