Commit ac8a35ac authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) fix redirect on service reload, closes https://github.com/opnsense/core/issues/763

(cherry picked from commit f173a3be)
parent 8cf1f28f
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment