fix(crud): use route params to redirect after a delation

This commit is contained in:
Simon Vieille 2025-11-20 11:46:21 +01:00
commit b609c2fb2e
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,9 @@
## [Unreleased]
### Fixed
* fix(crud): use route params to redirect after a delation
### Added
* add option `removeItemButton: true` when applying choices.js
* feat(builder): allow to define `allowed_widgets` in form options

View file

@ -406,7 +406,7 @@ abstract class CrudController extends AdminController
$this->addFlash('success', 'The data has been removed.');
}
return $this->redirectToRoute($configuration->getPageRoute($route));
return $this->redirectToRoute($configuration->getPageRoute($route), $configuration->getPageRouteParams($route));
}
protected function doFilter(Session $session, string $context = 'filter'): Response