Is there a way to use window.history.pushState
or any other js function to change the whole url in the address bar? I haven't been able to remove the root part.
Context: my app is on Heroku and the url looks like http://mywebsite.herokuapp.com and I'd like to make it look like http://mywebsite.com . I can easily change what is after the .com but not what is before :(