Multilang Router: Get page with additional template variables

I had my first go at the kirby router. However, things are not going very smoothly at the moment.

c::set('routes', array(
    'pattern' => 'en/contact/thank-you',
    'action'  => function() {
        site()->visit('kontakt', 'en'); // apparently needed in multilang routers?
        $data = array('thanks' => '...');
        return array('kontakt', $data);

This leads to:
Catchable fatal error: Argument 1 passed to Kirby::render() must be an instance of Page, boolean given, called in /var/www/html/kirby/kirby.php on line 626 and defined in /var/www/html/kirby/kirby.php on line 489 on the feature/Models branch of kirby.

How can I pass additional data to my template?

Solved. I didn’t realise till now that page names were case sensitive… return array('Kontakt', $data); works as expected.

On windows filenames/directory names are not case sensitive,
but on linux (most webservers in the www) filenames/directory names are case sensitive!

[quote=“anon77445132, post:2, topic:261, full:true”]In other words:
Avoid capital letters in names!

Good luck!