Lugo Labs

Replace URLs in browser history with Backbone

Change the URL without adding an entry to browser history with Backbone (useful for caching page parameters):

js
var app = new Backbone.Router;
app.navigate(Backbone.history.fragment + '?page=1', { replace: true });