kadirahq / flow-router

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

[SOLVED] Redirect doesn't change the path #698

Closed gaillota closed 7 years ago

gaillota commented 7 years ago

Hey guys,

I have a redirection like this

FlowRouter.route('/', {
    name: 'public.index',
    action() {
        FlowRouter.go('somewhere-else');
    }
});

When my application starts, the redirection works perfectly fine and I land on /somewhere-else. But when I click on a link with the {{pathFor 'public.index'}}, the redirection happens but the URL doesn't change and stays /.

Any idea why ?

HenriBeck commented 7 years ago

Maybe try redirecting with triggers

https://github.com/kadirahq/flow-router#redirecting-with-triggers

gaillota commented 7 years ago

Yes, I tried to use triggers and it worked. I forgot about this issue, sorry. Thanks for the help anyway.