I want to redirect a user depending on their role. For this, I created some helpers to reach this goal:
html:
{{#if Template.subscriptionsReady}}
{{#if currentUser}}
{{#if isInRole 'role1'}}
{{redirectRole1}}
{{else}}
{{#if isInRole 'role2'}}
{{redirectRole2}}
{{else}}
do stuff...
{{/if}}
{{/if}}
...........more code
Then, simply the helper is a call for FlowRouter.go(pageRole1)
and FlowRouter.go(pageRole2)
.
The main problem is… that it doesn’t call the helper. How can be this possible? (It works inserting a script html tag calling FlowRouter.go…)