cms.router.beforeRoute

Triggered in Cms\Classes\Router.

Fires before the CMS Router handles a route

Example usage:

Event::listen('cms.router.beforeRoute', function ((string) $url, (\Cms\Classes\Router) $thisRouterInstance) {
    return \Cms\Classes\Page::loadCached('trick-theme-code', 'page-file-name');
});