Skip to content

Commit

Permalink
Update redirect URL in cart.js
Browse files Browse the repository at this point in the history
  • Loading branch information
w3dd1e committed Dec 9, 2023
1 parent 5bb89d8 commit 1ca63db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/js/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
Expand Down

0 comments on commit 1ca63db

Please sign in to comment.