Is it possible to force History.js – https://github.com/browserstate/History.js/ – to use the hash URLs in a browser which does support HTML5/history API?
This is only for local testing, so fiddling with the History.js source is fine if that’s required.
I wanted to do the same thing for testing purposes and ended up updating the following lines in the jquery.history.js library.
Original: (View on GitHub)
Hack Solution:
I’m using the HTML4+HTML5 bundled minified code, but the line corresponds to Line 269 in the history.js uncompressed file. If you are using a different version, the corresponding section is here:
Unminified Original (View on GitHub):
Hack Solution: