Change window.location.hash to router.navigate