[BUGFIX beta] sync router.js: fix parent-child route invalidation bug

Closes #4405