pass query to willTransitionTo
redirect willTransitionTo on server side