2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

Modify the URL without reloading the page

Is there any way I can modify the URL of the current page without reloading the page?

userimage

I hope the below piece of code will modify your URL without any page reloading.

history.pushState({}, null, newUrl);
Answer is