[BUGFIX beta] sync router.js

Fixes #3810