Router::url does not return full route

Why does this

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

Return this

/users

Rather than this?

/users/index

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

Thanks!

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']);