diff --git a/customer/products/view.php b/customer/products/view.php index 8387e8d..6628114 100644 --- a/customer/products/view.php +++ b/customer/products/view.php @@ -7,7 +7,7 @@ require_once '../../config/database.php'; // Check if product ID is provided if (!isset($_GET['id'])) { - header("Location: /unimarket/customer/products/browse.php"); + header("Location: /customer/products/browse.php"); exit(); } @@ -22,7 +22,7 @@ $stmt->execute([$product_id]); $product = $stmt->fetch(); if (!$product) { - header("Location: /unimarket/customer/products/browse.php"); + header("Location: /customer/products/browse.php"); exit(); } @@ -86,10 +86,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['add_to_cart'])) {