Router::url does not return full route

Why does this

> Router::url(['controller' => 'Users', 'action' => 'index'])

Return this


Rather than this?


And how can I get it to return the full route, including the action listed explicitly?


CakePHP removes the /index part of all index actions by default, but you should be able to add it manually like this:

$routes->connect('/users/index/*', ['controller' => 'Users', 'action' => 'index']);