EasyAdminBundle: [3.2.0] linkToRoute not working properly.
Describe the bug When user clicks on a link created by linkToRoute it does not redirect to that new location. CRUD is not completelly updated: “New item” button is not working and data may not be updated.
To Reproduce
public function configureMenuItems(): iterable {
yield MenuItem::linktoRoute('Home', 'fa fa-home', 'home');
yield MenuItem::linktoRoute('Users', 'fa fa-home', 'users');
}
Some other related methods, like linkToCrud and linkToDashboard look misbehaving too.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22 (7 by maintainers)
Globally, links work, if I link to a page, it works. YET, if I link from “myapp/admin” to another dashboard “myapp/Whatever” the “admin” bit of the route is not updated to “Whatever” even if the route annotation exists in the destination dashboard.
Destination dashboard: /** * @Route(“/Whatever”, name=“routename”) */
The menu : on myapp/admin/ public function configureMenuItems(): iterable { return [ MenuItem::linktoDashboard(‘Admin’, ‘fa fa-home’, ‘routename’), MenuItem::linktoRoute(‘Admin’, ‘fa fa-home’, ‘routename’), ]; } The content of the page changes but not the menu. It used to work before I updated…
New repo with that issue. Just click on “son” and see how you are not allowed to go to “father”. Same behaviour when going to “father” and try to go to “son”. https://github.com/miguelgilmartinez/easyadminTest
If you’re not going to make a small example project, people aren’t able to mimic this, because for example I don’t use multiple dashboard.
Especially javier is extremely busy, so I would advise to create a small app that illustrtes mimics this issue.
People aren’t gonna do a lot of effort to mimic your specific situation.
It works with me, 3.2.1
So we cannot reproduce without small example, because it works on my site