Feature request: Ability to add url parameters int... - Magento Forums
cancel
Showing results for 
Search instead for 
Did you mean: 

Feature request: Ability to add url parameters into admin actions in menu.xml

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Feature request: Ability to add url parameters into admin actions in menu.xml

Currently it is not possible to have an admin menu link with more than 3 arguments:

 

menu.xml:

...

<add
id="Module::module_name-id"
action="module/controller/action/paramFoo/valueBar"
.../>

 

is menu item link is truncated to: 'module/controller/action/' and ignores the 'paramFoo/valueBar' addition. 

 

I'd suggest adding another property to the <add tag, something like:

 

actionParams="paramFoo=valueBar&paramLorem=valueIpsum" 

which would then be added to the $params array in the Magento\Backend\Model\Menu\Item::getUrl() method.