Skip to content

Commit

Permalink
Fix redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed Sep 16, 2024
1 parent b160885 commit f2c51f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/rule.common.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
Expand Down

0 comments on commit f2c51f4

Please sign in to comment.