The overlay do not have into condideration if one link does not have the target.protocol property (like in a SVG element anchor) resulting in this error:
Uncaught TypeError: Cannot read property 'match' of undefined
at Object.Drupal.overlay.eventhandlerOverrideLink (overlay-parent.js?v=1.0:592)
If we debug this line:
if (href != undefined && href != '' && target.protocol.match(/^https?\:/)) {
The target.protocol may not exist in some elements as some SVG anchors resulting in an error.
The solution may be check if it is defined or not like this:
if (href != undefined && href != '' && typeof target.protocol !== 'undefined' && target.protocol.match(/^https?\:/)) {
Comment | File | Size | Author |
---|---|---|---|
overlay_parent.js_svg_links_target_protocol.patch | 818 bytes | radabass | |
Comments