I have seen examples on how to remove & and replace with & in the url in Javascript. However, I don't get how to replace characters in the url and then use the url at the same time. Javascript is not my strong suit so please forgive me. I have tried the following below and it took me to http://flowline/&. What am I doing wrong? How do I achieve my end result in Javascript?
window.location = '/index.php?name=raider&do=see&ext=account&action=processed';
window.location.replace('&','&')
Put it into a variable first:
let url = '/index.php?name=raider&do=see&ext=account&action=processed';
window.location = url.replaceAll("&", "&");