Skip to content

Commit 4d1ae6b

Browse files
committed
bug #6840 fix #6837 - redirection to show page after delete action (eminjk)
This PR was merged into the 4.x branch. Discussion ---------- fix #6837 - redirection to show page after delete action fix #6837, similar to #6832 <!-- Thanks for your contribution! If you are proposing a new feature that is complex, please open an issue first so we can discuss about it. Note: all your contributions adhere implicitly to the MIT license --> Commits ------- 9efdbe4 fix AbstractCrudController.php
2 parents ae9e0da + 9efdbe4 commit 4d1ae6b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Controller/AbstractCrudController.php

-4
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,6 @@ public function delete(AdminContext $context)
387387
return $event->getResponse();
388388
}
389389

390-
if (null !== $referrer = $context->getRequest()->headers->get('referer')) {
391-
return $this->redirect($referrer);
392-
}
393-
394390
return $this->redirect($this->container->get(AdminUrlGenerator::class)->setController($context->getCrud()->getControllerFqcn())->setAction(Action::INDEX)->unset(EA::ENTITY_ID)->generateUrl());
395391
}
396392

0 commit comments

Comments
 (0)