// defined('_JEXEC') or die; //class plgSystemCustomredirect extends JPlugin //{ // public function onAfterInitialise() // { // $app = JFactory::getApplication(); // // // Only redirect on the frontend // if ($app->isClient('site')) //{ // $user = JFactory::getUser(); // // Only redirect logged-in users // if ($user->id > 0) { // Target URL (change to what you need) // $redirectUrl = 'index.php?option=com_content&view=article&id=1'; // Prevent infinite loop // $currentUrl = JUri::getInstance()->toString(); // Only redirect if not already on that page // if (strpos($currentUrl, $redirectUrl) === false) // { // $app->redirect(JRoute::_($redirectUrl, false)); // $app->close(); // Or use exit; // } // } // } // } // } FLORIN TUDOR

Dean of the Faculty of Legal, Social and Political Sciences, 
”Dunarea de Jos” University of Galati

Coordinator of the Director Council of Cross Border Institute of International Studies and Criminal Justice / Center for International Studies and Human Rights