Menu active trails for views paths with arguments

Had an issue today where menu_block module wasn’t showing when clicking a link to a view with argument.Example:Êcreate a view with path ‘my-view’ and add a node id argumentcreate a link in a menu to my-view/1ÊÊ (or whatever node you want to link to)create a menu block on the menu where you created the linkclicking the link will not show the menu blockchange the view path to my-view/% and all is wellAssume this announces the trail properly to menu_block so it knows we’re at that path, where before it had no idea.So our best practice going forward is to always add /% to the path for views with arguments.Ê


  • Author: Darko Hrgovic

© 2023 Agentic Digital Media

You can enable/disable right click