So, I saw that Kirby 2.5.3 fixes some things with filters and routes. It is now possible to use a routing filter for just one route. My question is: how do I create a global filter?
The examples on that page all start with a $router variable, which is defined at the top as $router = new Router();. But you can’t just create a new Router in your plugin or config.php file, because within $kirby->launch(), $kirby->router is set to a new Router.
This happens after plugins are loaded, so we can set routes with kirby()->set('route', ); within plugin files, but there is no way to get a global filter in.