kadirahq / flow-router

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

Accounts.onLogin: FlowRouter.getParam() fails #574

Open iboxgithub opened 8 years ago

iboxgithub commented 8 years ago

Hi, I have a configure.jsx file (in /both folder) in which I put my configuration of Flow router and specifically on the Accounts.onLogin() hook. It works pretty good (no problem with FlowRouter.current() for example) but shows me an error on the server WHEREAS the code works on this line

let lang = FlowRouter.getParam('lang') ? FlowRouter.getParam('lang') : Meteor.settings.public.lang['main'].id;

it is this error

Exception in onLogin callback: TypeError: Object [object Object] has no method 'getParam'

Did anyone already bump in that issue? is it linked to FlowRouter or Accounts package...or me?

Thanks for your help!

sunlee-newyork commented 7 years ago

I have a related issue as well where FlowRouter.go is not triggering inside Accounts.onLogin