SyntaxFix
Write A Post
Hire A Developer
Questions
You can do it as below:
history.replaceState({}, document.title, window.location.href.split('#')[0]);