fix(crud): use route params to redirect after a delation
This commit is contained in:
parent
ab7b15f2c0
commit
b609c2fb2e
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue