Hide hashes in URL? (for footnotes and backlinks)

Hey all. I was wondering what would be the simplest way to hide hashes (# from id elements) in the url bar when clicking the footnotes or backlinks that are made through markdown? I’m assuming javascript will be involved, and will probably require the use of scrollIntoView(). I would appreciate if someone could point me in the right direction.

Having hashes in the URL is ugly and I don’t see any purpose in having them unless you have a very large page with a table of contents.

Sounds like you have the right idea with JavaScript. I sometimes leave the id attribute and use it for a jquery selector when programmatically scrolling.