EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

[3.0] MenuItem::linkToUrl generates an empty string in the menu

Open xaviermarchegay opened this issue 6 years ago • 1 comments

Describe the bug

MenuItem::linkToUrl generates an empty string in the menu

To Reproduce In the dashboard controller : yield MenuItem::linkToUrl('Homepage', 'fas fa-home', '/')->setLinkRel('index');

(OPTIONAL) Additional context

MenuItemDto::TYPE_URL does not seem to be handled in the menu factory right now.

https://github.com/EasyCorp/EasyAdminBundle/blob/master/src/Factory/MenuFactory.php#L121

xaviermarchegay avatar Jun 12 '20 20:06 xaviermarchegay

Good catch! It's been fixed in #3340. Thanks.

javiereguiluz avatar Jun 13 '20 11:06 javiereguiluz