ion router 404 not found page code example
Example: ionic 5 fallback route
const routes: Route = [
{path: "OtherPaths",component: OtherPathsComponent},
{path: "PathNotFound", component: PathNotFoundComponent},
{path: "**", redirectTo: "PathNotFound"}
]