From f2c51f40863ccc8fa3c9181348ecff056ccdd803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Anne?= Date: Mon, 16 Sep 2024 12:05:13 +0200 Subject: [PATCH] Fix redirect --- front/rule.common.form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/rule.common.form.php b/front/rule.common.form.php index 3e2a03c7e08..af0ef43123b 100644 --- a/front/rule.common.form.php +++ b/front/rule.common.form.php @@ -77,7 +77,7 @@ "setup", sprintf(__('%1$s adds the item %2$s'), $_SESSION["glpiname"], $newID) ); - Html::redirect($_SERVER['HTTP_REFERER'] . "?id=$newID"); + Html::redirect($rule->getFormURLWithID($newID)); } else if (isset($_POST["purge"])) { $rulecollection->checkGlobal(PURGE); $rulecollection->deleteRuleOrder($_POST["ranking"]);