Make $app->redirect() compatible with Joomla 4.0 API