This is an old revision of the document!
const url_host = window.location.origin; const url_path = window.location.pathname; url_params.set( 'chat_postid', this.value ); const url_new_p = url_params.toString(); const new_url = url_host + url_path + '?' + url_new_p; window.location.replace( new_url );