Spaces:
Runtime error
Runtime error
Update templates/menu.html
Browse files- templates/menu.html +1 -1
templates/menu.html
CHANGED
|
@@ -271,7 +271,7 @@
|
|
| 271 |
.then(data => {
|
| 272 |
if (data.success) {
|
| 273 |
alert('Item added to cart successfully!');
|
| 274 |
-
window.location.href = '/
|
| 275 |
} else {
|
| 276 |
console.error('Error adding item to cart:', data.error);
|
| 277 |
alert(data.error || 'Failed to add item to cart.');
|
|
|
|
| 271 |
.then(data => {
|
| 272 |
if (data.success) {
|
| 273 |
alert('Item added to cart successfully!');
|
| 274 |
+
window.location.href = '/menu'; // Redirect to the cart page
|
| 275 |
} else {
|
| 276 |
console.error('Error adding item to cart:', data.error);
|
| 277 |
alert(data.error || 'Failed to add item to cart.');
|