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