@sebastiangreger Adding this to my config will give me an immediate “InvalidArgumentException: Invalid route parameters” on any route. Got an idea why that is?
The only place where this exception is thrown is in Router.php #56ff
public function __construct(array $routes = [])
{
foreach ($routes as $props) {
if (isset($props['pattern'], $props['action']) === false) {
throw new InvalidArgumentException('Invalid route parameters');
}
Which Kirby version are you using? The latest 3.6.2 RC?
Sorry, no idea. I have that exact snippet present in my config.php
right now and it does not throw an error in 3.6.1 nor 3.6.2
A typo or syntax issue somewhere, maybe?
Sounds like it, maybe post some more context from your config if you can’t find the issue.
I was missing an additional array in my routes
section, the nesting level was incorrect. Now it works like a charm. Thanks again @sebastiangreger.