I'm using something similar to the topic
App.route.ts customization.
By clicking on the route of the reports (using route params), the route is taken correctly, but the main layout doesn't run!
I found the error, it was the routes[1], where placing routes[2] would do pro layout main, it was in the login layout.