I am using history.pushState to append few params to current page URL after making an AJAX call on my page. Now on same page based on user action, I want to update the page URL
I think what you need is remove window.location.href and leave '?' +.
window.location.href
'?' +
var pageUrl = '?' + queryString; window.history.pushState('', '', pageUrl);