Broken link behavior and strange JavaScript
-
Hi, I noticed a bug being caused by this plugin. By default, a browser will allow users to press the CTRL key when clicking on a link, and it will open that link in a new tab. However, when I had this plugin installed, I noticed that this feature no longer worked.
Checking the event listeners on my links, I found this code:
function fe(e) { Y(); var t, n = this, r = n.href, o = n.action, u = r || o, s = z(n.method || i); i === s && H(n) && (t = new URLSearchParams(new FormData(n)) + "", u = U(u.split(/[?&#]/)[0]) + (t ? "?" + t : "")), x[u] = [V(n, s, u), n], $(e) }
It was coming from this source:
https://cdn.statically.io/gh/taufik-nurrohman/f3h/v1.0.12/f3h.min.jsAs it turns out, this feature is part of the Statically plugin, enabled under the “Page Booster” settings.
The f3h library calls itself “progressively enhanced”, but in this case it actually breaks a feature of the web. I imagine it’s something the author would be willing to fix.
I’m also reporting on their GitHub, so hopefully it can be fixed, but figured I would mention it here as well.
- The topic ‘Broken link behavior and strange JavaScript’ is closed to new replies.