I am using backbone to build my web app.
Currently I am facing an issue whereby if I am on the home page, I am unable to refresh the same page by just clicking on the \'
You're looking for Backbone.history.loadUrl.
From the Annotated Source:
Attempt to load the current URL fragment. If a route succeeds with a match, returns
true. If no defined routes matches the fragment, returnsfalse.
So, for a simple refresh link, you can add the following event to your Backbone.View:
events: {
'click a#refresh': function() {
Backbone.history.loadUrl();
return false;
}
}