kadirahq / flow-router

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

`FlowRouter.go` not working with Params object. #459

Closed shwaydogg closed 8 years ago

shwaydogg commented 8 years ago

The Following two examples work as expected:

FlowRouter.go('/manage-team/' + id);

FlowRouter.go('/manage-team');
FlowRouter.setParams({teamId: id});

FlowRouter.go('/manage-team', {teamId: id}); however does not work and has no warnings, errors or exceptions.

Of course, I'm continuing by just using what does work, but I'd thought I'd report. I'm on v2.10.0.

arunoda commented 8 years ago

For this one, you need give it like this:

FlowRouter.go('/manage-team/:teamId', {teamId: id});