mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
(legacy) fix redirect on service reload, closes https://github.com/opnsense/core/issues/763
This commit is contained in:
parent
4ae8fc6cb6
commit
f173a3bedd
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user