Search code examples
meteoriron-router

Router path for page navigation


we have the problem with the router when we navigate from one to another page.

Suppose when we are in template1 and we need to go to templete2.Then we do Router.go(/templete2) right.I need in the URl templete1/templete2.Please help me.


Solution

  • try the following in your router.js file

    Router.route('template1/template2',function() {  
        this.render('template2');
     });