From 1ca63db62b985d7d628e87c34297f54231465b16 Mon Sep 17 00:00:00 2001 From: w3dd1e Date: Sat, 9 Dec 2023 13:42:45 -0600 Subject: [PATCH] Update redirect URL in cart.js --- front/js/cart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/js/cart.js b/front/js/cart.js index c2f1040..852abd6 100644 --- a/front/js/cart.js +++ b/front/js/cart.js @@ -183,7 +183,7 @@ form.addEventListener("submit", (event) => { }) .then((response) => response.json()) .then((data) => { - window.location.href = "/confirmation.html?="; + window.location.href = "./confirmation.html?=" + data.orderId; }); alert("Thank you for your order!");