XF 2.2 Redirect to specific page after add on installation

Yeah. Add a postInstall method to your setup class and set redirect on the state changes array:

PHP:
public function postInstall(array &$stateChanges): void
{
    $router = \XF::app()->router('admin');
    $stateChanges['redirect'] = $router->buildLink('your/page');
}
 
Top Bottom