I've encountered an issue with my route configuration. I expected the router to redirect the client to /dashboard when entering the page without any url extension, but it's displaying the 404 page instead. Interestingly, commenting out alias: '*'
for the 404 page seemed to enable the redirect as intended.
function configRoutes() {
return [
// Route configuration code goes here...
]
}
Any suggestions on how to resolve this problem?