Simply put: Assuming the current page is renfei.org/, execute the following JavaScript statement:
window.history.pushState(null, null, "/profile/");
Copy the code
The address bar then changes to renfei.org/profile/, but the browser doesn’t refresh the page or even detect if the target page exists.