Closed ubik23 closed 4 years ago
Check to see if we already have a function that does that. Perhaps in hash.min.js?
If not, create a new function to clear the hash and call it within the 'gotoNewChar' function.
I tested 'hash.clear' in the console and it works, add that to the 'gotoNewChar' function.
If you don't mind reloading the browser:
window.location.href="/"
If you don't mind keeping the "#" but don't want to reload the page:
window.location.hash=""
I'd rather not reload the browser.
window.location.hash='' is probably the simplest way. (I used single quotes since we're using standard/standard now)
The 'gotoNewChar' function should erase the hash from the URL as well.