You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Locales in combination with pretty urls not working. Tested in v4.14.0 - v4.19.0
To Reproduce
Setup:
#[Route('/admin/{_locale}', name: 'admin', defaults: ['_locale' => 'de'])]
public function index(): Response
{
return $this->render('admin/page/dashboard.html.twig');
}
public function configureDashboard(): Dashboard
{
return Dashboard::new()
->setTitle('Administration')
->setLocales(['de', 'en']);
}
Add new crud:
public function configureMenuItems(): iterable
{
return [
yield MenuItem::linkToCrud('Users', 'fa fa-user', UserCrudController::getEntityFqcn()),
];
}
Try to edit any entry produces: An exception has been thrown during the rendering of a template ("Some mandatory parameters are missing ("entityId") to generate a URL for route "admin_user_edit".").
Describe the bug
Locales in combination with pretty urls not working. Tested in v4.14.0 - v4.19.0
To Reproduce
Setup:
Add new crud:
Try to edit any entry produces:
An exception has been thrown during the rendering of a template ("Some mandatory parameters are missing ("entityId") to generate a URL for route "admin_user_edit".").
Error appears in:
vendor/easycorp/easyadmin-bundle/templates/layout.html.twig:133
Here is entityId not set:
{{ ea_url().set('_locale', localeDto.locale) }}
The text was updated successfully, but these errors were encountered: