proweb
6/9/2013 - 9:19 PM

How to redirect using the Joomla API

How to redirect using the Joomla API

// joomla 2.5
$app = JFactory::getApplication();
$link = 'http://www.domain.com/';
$msg = 'You have been redirected to domain.com';
$app->redirect($link, $msg, $msgType='message');