So I've a navbar, and I've made my way to a sub dir in "Games" called "Cross" so, /games/cross. Now from that page, I'm trying to acess the Games page again from navbar but its showing /games/games... How do I fix this? I have the following...
Router.configure({
layoutTemplate: 'layoutDefault'
});
Router.route('/', function(){
this.render('main');
});
Router.route('/contact', {
template: 'contact'
});
Router.route('/games', {
template: 'games'
});
Router.route('/games/cross', {
action: function() {
if(Roles.userIsInRole(Meteor.user(), ['normal' , 'admins'])) {
this.render('cross')
}
else
this.render('denied')
}
});