I want to set a default route for my backbone.js controller. Currently I do it like so:
class DealSearchController extends Backbone.Controller
routes:
Try adding this additional route as the last route in your controller:
'*path': 'defaultRoute'
and then handle it like this:
defaultRoute: function(path) {
this.showListView();
}
This assumes the list route is your preferred default. This should work since Backbone.js will match the routes in order, but will always match the 'splat' route.