I have defined backbone router:
MyApp.router = new (Backbone.Marionette.Router.extend({
routes: {
"/m/:id": "openMovie",
"m/:id": "openMovie"
},
openMovie: function(id) {...}
});
My html has link like /m/123
. When I click this link backbone doesn't trigger openMovie
function - browser opens new page. Why doesn't backbone use history api in this case? How can I fix it with backbone or marionette?