Could we help you? Please click the banners. We are young and desperately need the money
This JavaScript function allows you to effortlessly modify URL parameters without reloading the page.
function change_url_parameter(field, value) {
let url = new URL(window.location.href);
if ((value ?? null) !== null) {
url.searchParams.set(field, value);
} else {
url.searchParams.delete(field);
}
window.history.replaceState({}, null, url);
}