Search code examples
asp.net-mvcroutesdurandalhottowel

How to clear existing routes and push new routes


I use the following in Hot Towel SPA template for ASP.net MVC

 router.mapNav('home');
 router.mapNav('register');
 router.mapNav('login');

I wanted to clear the existing routes and push my new values.

 router.mapNav('Career');
 router.mapNav('Contact');

How do I achieve this in my project?

I am trying to achieve a functionality to set new nav bars after some authentication check.


Solution

  • Feel free to check following discussion https://groups.google.com/forum/m/#!topic/durandaljs/jXMFG1I6PVw