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; }