0👍
It sounds like you may be missing a catch-all route in your router configuration. Without seeing your full router configuration, it’s hard to say for sure, but something like this might work:
{
path: '*',
component: NotFound
}
This will catch any routes that don’t match any of your other routes, and render the NotFound component.
Source:stackexchange.com