page.changeSlug:before $page, $slug, $languageCode /site/config/config.php return [ 'hooks' => [ 'page.changeSlug:before' => function ($page, $slug, $languageCode) { // your code goes here } ] ]