I'm trying to achieve nested routes with Backbonejs like this:
var Router = Backbone.Router.extend({
routes: {
'(/)': 'root',
'/a/:id: 'loadA,
'/a/:id/:secondId: 'loadA'
}
})
Issue I am facing is that '/a/:id' is making a request to a server and I don't want to execute another request when going to /a/:id/:secondId but use the same page/view/model and change just a subview.
In addition I would like to keep track of the history, which seems to fire "initialize" when going back to the previous state.
Any idea?