How do I reload the page without the query parameters?

window.location = window.location.href.split("?")[0];

Leave a Comment