Kunstmaan / KunstmaanBundlesCMS

An advanced yet user-friendly content management system, based on the full stack Symfony framework combined with a whole host of community bundles. It provides a full featured, multi-language CMS system with an innovative page and form assembling process, versioning, workflow, translation and media managers and much more.
https://kunstmaancms.be
MIT License
403 stars 187 forks source link

[AdminListBundle] invalid AbstractAdminListConfigurator getAddUrlFor() for menus #3450

Open jerome2710 opened 1 week ago

jerome2710 commented 1 week ago

When managing menus in Kunstmaan 7.1, the add["path"] is wrong, resulting in a non-existent route:

An exception has been thrown during the rendering of a template ("None of the chained routers were able to generate route: Route 'kunstmaan\menubundle_admin_menuitem_add' not found").

This originates from getAddUrlFor(), which calls getPathByConvention().

The $rootNamespace contains Kunstmaan\MenuBundle and therefore creates a wrong path. We have temporarily added the following patch on AbstractAdminListConfigurator.php#L818 to remove the \:

$rootNamespace = str_replace('\\', '', $rootNamespace);
dannyvw commented 1 week ago

Same as https://github.com/Kunstmaan/KunstmaanBundlesCMS/pull/3420/files? This is not released yet.

jerome2710 commented 1 week ago

@dannyvw it might be related, but this is pushed into Kunstmaan:6.4 and we are using 7.1.

dannyvw commented 1 week ago

@jerome2710 That change is not yet released on a 7.1 tag. It exists in the 7.1 branch.