Skip to content
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

Open
pan93412 opened this issue Dec 16, 2024 · 5 comments
Open

The menu item does not highlight for a custom controller #6651

pan93412 opened this issue Dec 16, 2024 · 5 comments

Comments

@pan93412
Copy link
Contributor

pan93412 commented Dec 16, 2024

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
36390

@Aerendir
Copy link

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

@pan93412
Copy link
Contributor Author

I had a similar issue and solved following the instructions here:

I have configured pretty URL, however, I don't really sure what Twig Components is for. Are there any examples?

@Aerendir
Copy link

I had a similar issue and solved following the instructions here:

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.

@pan93412
Copy link
Contributor Author

I had a similar issue and solved following the instructions here:

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.

@Aerendir
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants