kadirahq / flow-router

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

When one redirect, redirects to another redirect, the URL is not the final URL, but intermediate. #649

Closed ghost closed 7 years ago

ghost commented 8 years ago

When redirecting to a route that redirects to a second route, the URL shows the path used in the first call to FlowRouter.go()

This bug exists in FF and Chrome.

s-devaney commented 8 years ago

+1

ghost commented 7 years ago

I've just noticed this: the redirect() function. It seems we should be using redirect() instead of FlowRouter.go() inside our FlowRouter functions. https://github.com/kadirahq/flow-router#redirecting-with-triggers

I'm gonna try it out.

Inside the normal .enter function, the 2nd param is a reference to the func doRedirect(url, params, queryParams)

ghost commented 7 years ago

Seems to work fine.