In some cases, I need to remap the router after users login. But `router.replace` does nothing when current path is equal to target path.