I am very new to backbone.js.
My page navigation is as follows:

Left navigation defines four views, while top navigation should update the data and redisplay the current view (which I mean).
I want to allow the user to add bookmarks of the current view and category according to his personal preferences (and, possibly, save the settings in the localstorage browser).
These two menus can be used interchangeably, which means that the user can decide to show a different view with the current model of the model, and the user can select a different category in the current view.
I have some problems figuring out how I should configure the router for this in a stable way.
Please note that there may be additional parameters behind this path, such as displaying the active marker on the map based on profile_id.
Now I had an idea to do something like this:
var AppRouter = Backbone.Router.extend({ routes: { ":view/:category": "aggregatefunction" } });
But I'm pretty not sure if this will lead me to what I need.
Since I want to use menus interchangeably and bookmark them, I'm already stuck on link building.
Can you just give me some design tips and let me know about potential pitfalls that will help me along the way?
Any further advice is of course welcome.
thanks
Edit
For a bonus, I would like to read a few more opinions. I still have problems building and adapting hrefs in menu binding shortcuts dynamically, and at the same time being able to fire events (change category / or change view). I am looking for the most stable solution to this problem.
Combined with some code in the illustration, if possible.
Thank you
Trace source share