Forcing Backbone to reload or refresh the current URL without any hash changes

Backbone.js is almost becoming de facto standard for modular JS framework for the rich UI and well, I use it nearly all of my projects.

However, a little strange thing with Backbone is that the content is loaded only if the URL changes. I found this behaviour a little bit peculiar and it seems like its GitHub followers agree.

Anyway, until they do something about it, here’s a little thing you can do to trick the framework so that URL is reloaded no matter what.

Backbone.history.loadUrl( Backbone.history.fragment )

Awesome or what? You’re welcome.