0👍
Router redirect with ''
path should not work, since it is not a valid path.
In case you want to redirect user to homepage (root of the app), /
should be used as a path.
router.replace('/')
or
router.replace({
path: '/'
})
Source:stackexchange.com