[SOLVED] Redirect doesn't change the path
gaillota opened this issue · comments
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 ?
Maybe try redirecting with triggers
https://github.com/kadirahq/flow-router#redirecting-with-triggers
Yes, I tried to use triggers and it worked.
I forgot about this issue, sorry.
Thanks for the help anyway.