From e9a6fa443656f2f6076272f3164399e46a522063 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Mon, 17 Jan 2022 20:17:38 +0000 Subject: [PATCH] Redirect back to main quote/invoice page after emailing a quote / invoice. #275 --- post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post.php b/post.php index 17da2fc5..062c6d9f 100644 --- a/post.php +++ b/post.php @@ -3031,7 +3031,7 @@ if(isset($_GET['email_quote'])){ $_SESSION['alert_message'] = "Quote has been sent"; - header("Location: " . $_SERVER["HTTP_REFERER"]); + header("Location: quotes.php"); } catch (Exception $e) { @@ -3716,7 +3716,7 @@ if(isset($_GET['email_invoice'])){ $_SESSION['alert_message'] = "Invoice has been sent"; - header("Location: " . $_SERVER["HTTP_REFERER"]); + header("Location: invoices.php"); } catch (Exception $e) {