Skip to content

Commit

Permalink
don't force location header
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Jun 22, 2023
1 parent a220f88 commit 5e7c5f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ActionsGridFieldItemRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -664,12 +664,12 @@ public function doSaveAndClose($data, $form)
$controller = $this->getToplevelController();

$link = $this->getBackLink();

$link = $this->addGridState($link, $data);

$controller->getResponse()->addHeader("X-Pjax", "Content");

// Prevent Already directed to errors
$controller->getResponse()->addHeader("Location", $link);
// $controller->getResponse()->addHeader("Location", $link);

return $controller->redirect($link);
}
Expand Down Expand Up @@ -702,7 +702,7 @@ public function doSaveAndNext($data, $form)
}

// Prevent Already directed to errors
$controller->getResponse()->addHeader("Location", $link);
// $controller->getResponse()->addHeader("Location", $link);

return $controller->redirect($link);
}
Expand Down Expand Up @@ -735,7 +735,7 @@ public function doSaveAndPrev($data, $form)
}

// Prevent Already directed to errors
$controller->getResponse()->addHeader("Location", $link);
// $controller->getResponse()->addHeader("Location", $link);

return $controller->redirect($link);
}
Expand Down

0 comments on commit 5e7c5f8

Please sign in to comment.