From 856a6009938a3a4f4553714b318fe90b1c1250c8 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 17 May 2022 13:50:54 -0400 Subject: [PATCH] Fixed send invoice/quote email redirects so they go back to the page you were last on --- post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post.php b/post.php index 1fc795d9..13f833b9 100644 --- a/post.php +++ b/post.php @@ -3378,7 +3378,7 @@ if(isset($_GET['email_quote'])){ $_SESSION['alert_message'] = "Quote has been sent"; - header("Location: quotes.php"); + header("Location: " . $_SERVER["HTTP_REFERER"]); } catch (Exception $e) { @@ -4076,7 +4076,7 @@ if(isset($_GET['email_invoice'])){ $_SESSION['alert_message'] = "Invoice has been sent"; - header("Location: invoices.php"); + header("Location: " . $_SERVER["HTTP_REFERER"]); } catch (Exception $e) {