I have this URL:
And I want to change it to something else without changing the page:
Is this possible? If it is tell me the code please
I have this URL:
And I want to change it to something else without changing the page:
Is this possible? If it is tell me the code please
You need to use the pushState or replaceState methods
window.history.pushState(null, null, "/your-new-url");
OR
window.history.replaceState(null, null, "/another-new-url");