Open Batistleman opened 8 years ago
Anyone else having trouble after a meteor upgrade from 1.3.2 to 1.3.4?
I have the following code to redirect to the login page:
Router.onBeforeAction(function () { if (!(Meteor.loggingIn() || Meteor.user())) { console.log(Meteor); this.redirect('/login'); } else { this.next(); } }
However, each new page I open redirects me to the login page.
I think you need to use Router.go('pageNamed') instead of this.redirect
Router.go('pageNamed')
this.redirect
Anyone else having trouble after a meteor upgrade from 1.3.2 to 1.3.4?
I have the following code to redirect to the login page:
However, each new page I open redirects me to the login page.