Hello,
i am currently having an issue with submenu parents that do not possess a link, instead of expanding the submenu on mobile, they link to a 404 (’/undefined’ is added to the URL).
the same menu is working as intended (no clicking possible on the submenu parent) in the inline menu used for desktop version, it’s the off-canvas menu that is giving trouble.
looking thru the PRO javascript that defines the action, once the parent menu element is clicked, it searches for the link attribute ‘href’, which in this case is absent, thus returning “undefined” as value.
$('.x-menu-collapsed .menu-item-has-children > .x-anchor').on('mousdown touchend', function(e) {
if ( (!$(e.srcElement).is('.x-anchor-sub-indicator')) && (!$(e.srcElement).is('.x-anchor-content')) ) {
var $this = $(this);
$this.siblings('ul').hide();
window.location = $(this).attr('href');
}
});
PRO version in this instance is 4.3.1
here is a screenshot of the list element with the problem in browsers code inspector.
This is happening on the following live site:
To replicate the issue use the mobile version of the site and click the top menu voice “Media e Notizie”.
Can you confirm this is a bug? It seems easy enough to solve.
Thank you.

