You need add:
$(document).delegate("a", "click", function(evt) {
var href = $(this).attr("href");
var protocol = this.protocol + "//";
if (href.slice(protocol.length) !== protocol && protocol !== 'javascript://' && href.substring(0, 1) !== '#') {
evt.preventDefault();
Backbone.history.navigate(href, true);
}
});
And last 2 strings should be:
app_router.navigate("/login", {trigger: true}); // <- should remove this string
Backbone.history.start({pushState: true, root:"test/backbone/test.html"});