Replace & to &
Decode it like this:
var str = "http://192.168.0.20/menulb.php?w=chapter&if=If_menulb&p=521";
var div = document.createElement('div');
div.innerHTML = str
var decoded = div.firstChild.nodeValue;
url_summer = url_summer.replaceAll('&', '&');