-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The menu item does not highlight for a custom controller #6651
Comments
Have you tried to configure pretty URLs and Twig Components? I had a similar issue and solved following the instructions here: https://symfony.com/bundles/EasyAdminBundle/current/dashboards.html |
I have configured pretty URL, however, I don't really sure what Twig Components is for. Are there any examples? |
See the link and you'll find all the info you need. |
Not really. I don't see any information about how Twig Component is useful for my cases. |
Sorry, wrong link: It is required by Easy Admin to work. |
Describe the bug
My dashboard controller has a linkToRoute (code) to my custom controller. After the EasyAdmin commit ecf581d, the menu item no longer highlights even when I am on this page.
I am unsure if this is a bug or a deprecated usage. I did not find an alternative to my current approach. Besides, linkToRoute is not covered by tests.
To Reproduce
I am currently using the latest commit of EasyAdmin (81e468d).
The code can be seen in https://github.com/database-playground/app-sf/tree/ff8a0df606f05beff580241d5f67873d3ce4b13a
(OPTIONAL) Additional context
The text was updated successfully, but these errors were encountered: