kadirahq / flow-router

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

trigger on route change ? #740

Closed MathieuDerelle closed 4 years ago

MathieuDerelle commented 4 years ago

the enter trigger seems to only have information about the route we are entering and the exit trigger seems to only have information about the route we are leaving

I'd like to redirect/stop/noop based on both the current route and the route we are going to. How can I do that ?

MathieuDerelle commented 4 years ago

in fact, we can get oldRoute in trigger enter, but the query string is gone for some reason :

image

(previous route was something like /?a=b)

MathieuDerelle commented 4 years ago

closing in favor of #741