Can someone help me troubleshoot this url modification script?
var currentPath = window.location.href
currentPath=currentPath.replace(/&/g, "&");
window.location.href=path;
It seems like the page keeps reloading endlessly... Any suggestions on how to fix it and make the page reload only once?