window.history.push mdn code example
Example: javascript window.history.pushState
window.history.pushState("http://example.ca", "Sample Title", "/example/path.html");
window.history.pushState("http://example.ca", "Sample Title", "/example/path.html");