From 3a9ea1d67e0012de67caeabbae4f07bfae6378f9 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 28 Aug 2021 11:58:29 -0400 Subject: [PATCH] Fixed Post Redirection on edit and archive in categories --- post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post.php b/post.php index 35da88ed..39a7d62a 100644 --- a/post.php +++ b/post.php @@ -1364,7 +1364,7 @@ if(isset($_POST['edit_category'])){ $_SESSION['alert_message'] = "Category modified"; - header("Location: categories.php"); + header("Location: " . $_SERVER["HTTP_REFERER"]); } @@ -1378,7 +1378,7 @@ if(isset($_GET['archive_category'])){ $_SESSION['alert_message'] = "Category Archived"; - header("Location: categories.php"); + header("Location: " . $_SERVER["HTTP_REFERER"]); }