Hello guys!
I'm using custom function to check login on Router.onBeforeAction, with the following code
...
Session.set('fromWhere', router.url);
Router.go('/sign-in');
Session.set('entryError', 'Error.');
router.next();
...
But I keep getting redirected to '/dashboard' url after signing in, no matter what page I was trying to reach.
Any suggestions?
Hello guys!
I'm using custom function to check login on Router.onBeforeAction, with the following code
... Session.set('fromWhere', router.url); Router.go('/sign-in'); Session.set('entryError', 'Error.'); router.next(); ...But I keep getting redirected to '/dashboard' url after signing in, no matter what page I was trying to reach.
Any suggestions?