Hello. I have 2 modules: user and application. They have same IndexController.
I wrote common route in application.config
router' => [ 'routes' => [ 'common' => [ 'type' => Segment::class, 'options' => [ 'route' => '[/:module/:controller/:action[/:id]]', 'constraints' => [ 'module' => '[a-zA-Z][a-zA-Z0-9_-]*', 'controller' => '[a-zA-Z][a-zA-Z0-9_-]*', 'action' => '[a-zA-Z][a-zA-Z0-9_-]*', 'id' => '[0-9]+', ], 'defaults' => [ 'action' => 'index', ], ], ], ], ],
Router match this route. But nowadays
When uri is domain.com/application/index/index
then It was calling IndexController in User module. But I expect for IndexController in Application module
How to reach that IndexController will be call in different modules with this route config?