[BUGFIX beta] Sync router.js, fix redirect issue

Occasionally leaf route redirects would report
as errors instead of just aborted transitions.
Merge pull request #4198 from machty/redirect-hook-fix

[BUGFIX beta] Sync router.js, fix redirect issue