2👍
✅
Router don’t know to what URL should use instead a * placeholder.
You can define yout 404 route with specified path or add additional parameter to push.
Or simply call this.$router.push(‘/404’) with absolute url
1👍
The path *
is used for redirection if the link provided is not defined in your routes, to redirect to the 404 page you could push not existing path like push('/this-path-not-exists')
or use another path like path:'/not-found'
which should be defined it has 404 page as component
Source:stackexchange.com