From f173a3bedd8d41a7dadafc1926a65eef65e72eed Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 8 Feb 2016 16:41:54 +0100 Subject: [PATCH] (legacy) fix redirect on service reload, closes https://github.com/opnsense/core/issues/763 --- src/www/status_services.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/www/status_services.php b/src/www/status_services.php index 3f00fd84e..4c4607c9e 100644 --- a/src/www/status_services.php +++ b/src/www/status_services.php @@ -60,8 +60,9 @@ if (!empty($_GET['service'])) { break; } sleep(5); - // redirect after performing action, removing the action parameters from request. - header("Location: status_services.php"); + // redirect to the previous page after performing action, removing the action parameters from request. + $referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/status_services.php'); + header("Location: ".$referer); exit; }