I have noticed that sites like http://hypem.com which is a full ajax site have now managed to scrap their #! ajax urls but maintained a full ajax site. How is this possible?
You can do this with history.pushState, only in decent browsers though ;)
https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history
Here's a jQuery plugin with a fallback for older browsers to a hashed URL: http://plugins.jquery.com/project/history-js
Some modern browsers support history.pushState()
.
However, if you want to support older browsers that are still popular, you should use the hash fallback.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With