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
On my side when I remove $currentRequestUriWithoutAction .= '/'; it fixes the issue.
So I don't really understand why we are adding this trailing slash, maybe my router is not configured in the same way and rewrites url to alway remove trailing slash.
I think the safest way to handle both cases should be to always remove or append the trailing slash on compared values.
To Reproduce
Create an entity and the corresponding crud controller
Create a dashboard controller and add the linkToCrud to configureMenuItems
Visite the create or edit page of an entity item
(OPTIONAL) Additional context
Thanks in advance !
The text was updated successfully, but these errors were encountered:
Describe the bug
There is an issue when computing the selected menu items for create and edit urls with the new Pretty urls system (for example :
/admin/foo/{id}/edit
See :
EasyAdminBundle/src/Menu/MenuItemMatcher.php
Lines 185 to 192 in f2fc65b
On my side when I remove
$currentRequestUriWithoutAction .= '/';
it fixes the issue.So I don't really understand why we are adding this trailing slash, maybe my router is not configured in the same way and rewrites url to alway remove trailing slash.
I think the safest way to handle both cases should be to always remove or append the trailing slash on compared values.
To Reproduce
(OPTIONAL) Additional context
Thanks in advance !
The text was updated successfully, but these errors were encountered: