Routing with arguments to controller in multilanguage setup

Hello,

How can I setup a route to a controller in which I can also send arguments to the controller from within the route?

I know I have to use:

return site()->visit('some/page', 'en');

as per http://getkirby.com/docs/advanced/routing#multi-language-setup

But that function doesn’t have an arguments “parameter”?

PS: I’m also not getting anything from the “custom placeholders” in the $args variable in the controller (in the multilingual setup)?

This is the router I’m using:

    c::set('routes', array(
    array(
        'pattern' => '(:any)/compare/(:all)',
        'action'  => function($lang,$args) {
            return site()->visit('compare', 'en');
        },
        'method' => 'GET|POST',
    ),
));

The controller starts with:

return function($site, $pages, $page, $args) {

But the $args parameter is empty?

Can someone help me out please? Thanks!

Please see How is it possible to combine routing, variables and multi language support for a solution.