When you create a A/B test for a node that is linked to a menu item. The A/B testing version won't show the menu item or mark it as active.

How can we solve this?

Comments

soyarma’s picture

That's a good question... an option would be to make the B version be a child item of the A version's menu entry, but disabled. I believe that would (because of hierarchy) show the A version as active because one of its children is active.

I'm not 100% sure that will work, but it's worth a shot. I'll also investigate the option of creating a menu hook to automatically deal with this.

kristofdg’s picture

How about using menu_set_active_item() to set the active menu item to the original page menu item?

miro_dietiker’s picture

Version: 6.x-1.0 » 6.x-2.x-dev

We'll need to check if active menu items work cleanly with the refactored code.

I think we'll need a small documentation paragraph per (mutation,success,condition) plugin to describe its intention and limitations... (here, the url mutation and the url redirect mutation plugin)