I have a fairly simple trunk router, and so far everything is working fine. Except when I reload / direct by entering a URL, i.e. http://mydomain.com/#list/50fadc41125b0
I tried almost everything now without any positive results.
myRouter = Backbone.Router.extend({
routes: {
"list/:id": "getList",
"*actions": "defaultRoute"
},
getList: function (id) {
console.log ("test");
}
});
I tried it the same way, without any difference
router = new myRouter;
router.on('route:getList', function (id) {
[...]
});
I have no idea how to do this! hope someone has an answer for me!
EDIT:
I also start the story
Backbone.history.start();
Horst source
share