kadirahq / flow-router

Carefully Designed Client Side Router for Meteor
MIT License
1.09k stars 194 forks source link

Redirect after Login not working #509

Open xvendo opened 8 years ago

xvendo commented 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'); });

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.

arunoda commented 8 years ago

FlowRouter only work on the client side. Not sure on the documentation you are referring to.