window.history.pushstate typescript code example
Example: window.history.pushstate typescript
const url = new URL(window.location.href);
url.searchParams.set("key", "value");
const href = url.toString();
window.history.pushState({}, '', href);
const url = new URL(window.location.href);
url.searchParams.set("key", "value");
const href = url.toString();
window.history.pushState({}, '', href);