Open xvendo opened 8 years ago
The official Kadira Documentation and countless blog posts publish the following code as one way to redirect to a given path.
I am using Flow Router 2.10.0 and Meteor 1.2.1.
server.js Accounts.onLogin(function() { FlowRouter.go('/dashboard'); });
Accounts.onLogin(function() { FlowRouter.go('/dashboard'); });
Router: undefined
As Accounts.onLogin can work on both "Client" and "Server", could you please add this info to your documentation? I guess as Flow Router supports client routing only, the above code would not work.
FlowRouter only work on the client side. Not sure on the documentation you are referring to.
The official Kadira Documentation and countless blog posts publish the following code as one way to redirect to a given path.
I am using Flow Router 2.10.0 and Meteor 1.2.1.
server.js
Accounts.onLogin(function() { FlowRouter.go('/dashboard'); });
Result:
Router: undefined
As Accounts.onLogin can work on both "Client" and "Server", could you please add this info to your documentation? I guess as Flow Router supports client routing only, the above code would not work.