diff --git a/src/app/[locale]/auth/callback/route.ts b/src/app/[locale]/auth/callback/route.ts index f5ac134..39e4049 100644 --- a/src/app/[locale]/auth/callback/route.ts +++ b/src/app/[locale]/auth/callback/route.ts @@ -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);