function removeQueryParam(paramName) { if (history.replaceState) { const url = new URL(window.location.href); url.searchParams.delete(paramName); history.replaceState(null, '', url.toString()); } }
function removeQueryParam(paramName) { if (history.replaceState) { const url = new URL(window.location.href); url.searchParams.delete(paramName); history.replaceState(null, '', url.toString()); } }