I think what you need is remove window.location.href and leave '?' +.
var pageUrl="?" + queryString;
window.history.pushState('', '', pageUrl);
I think what you need is remove window.location.href and leave '?' +.
var pageUrl="?" + queryString;
window.history.pushState('', '', pageUrl);