Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #3361 Fixed Dashboard Crud links when using prefixed routes (jbtr…
…onics) This PR was merged into the 3.0.x-dev branch. Discussion ---------- Fixed Dashboard Crud links when using prefixed routes Symfony allows to add prefixes to all imported routes, to choose between different languages easily (see https://symfony.com/doc/current/routing.html#localized-routes-i18n). EasyAdmin 3 had problems when using prefixed routes, because the routes generated for CRUD controllers did not matched the locale the user has selected by the route prefix. Instead, always the last defined route prefix was used. The reason for this that the controller name (which was used as key by CacheWarmer) is the same for all the different prefixed routes. I changed this behavior and added some logic to determine the right route based on Request object. Now EasyAdmin should work fine with locale prefixed routes. Commits ------- dfce1e8 Fixed DashboardRoute determination when using locale prefixed routes.
- Loading branch information