April 2, 2020
You usually clear the URL hash like this:
location.hash = ""
However, that leaves a #
at the end of the URL. You can remove the #
by adding a line of code:
location.hash = ""
history.replaceState("", "", location.pathname)
The second line overwrites the URL with the current URL, minus the #
.
Tufts Meal Plan Wrapped
Mar 2, 2024
Building an e-ink picture frame that displays an iCloud photo album
Jan 9, 2024
2023 in review
Jan 5, 2024
Subscribe to my newsletter for a monthly round-up of new blog posts and projects Iām working on!