I am trying to update the URL but not navigate the page when using tabs in backbone, so that a tab can be bookmarked, when I run this from my codebase it does nothing,
app.Router.navigate('groups/teams', { trigger:false });
however if I run it in my console, it changes the url from 'http://app.local/groups' to 'http://app.local/groups#groups/teams' why does it add #
? I would like to update the URL to 'http://app.local/groups/teams'.
Am I using the Router incorrectly? My router is pretty simple,
var app = app || {};
var Router = Backbone.Router.extend({
routes: {
'groups' : 'groups'
},
groups: function() {
alert("Groups");
}
});
app.Router = new Router();