JS error on pages with SVG.

Created on 25 April 2023, about 1 year ago
Updated 26 February 2024, 4 months ago

We have a site using this module that has an SVG in the page content. When links in the SVG are clicked, a JS error occurs:

google_analytics.js?v=8.9.16:58 Uncaught TypeError: this.href.match is not a function
    at SVGAElement.<anonymous> (google_analytics.js?v=8.9.16:58:79)
    at Function.each (jquery.min.js?v=3.5.1:2:2976)
    at S.fn.init.each (jquery.min.js?v=3.5.1:2:1454)
    at HTMLBodyElement.<anonymous> (google_analytics.js?v=8.9.16:21:41)
    at HTMLBodyElement.dispatch (jquery.min.js?v=3.5.1:2:43090)
    at v.handle (jquery.min.js?v=3.5.1:2:41074)

NB that we're not actually interested in tracking this link - the error happens anyway.

🐛 Bug report
Status

RTBC

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom rupertj Bristol, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024