else
$return = 'index.php';
JFactory::getApplication()->setUserState('com_jfbconnect.login.return', $return);
}
else
$return = 'index.php';
if ($return == 'index.php?option=com_blah...') // or '/SEF-URL')
$return = "link-to-page-to-return-to.html';
JFactory::getApplication()->setUserState('com_jfbconnect.login.return', $return);
}
if ($return == "/index.php?option=com_users&view=login" || $return == "/login")
{
$return = "/";
}
alzander wrote: Anson,
Very sorry for the delay in getting back to this. If you're still looking for way to control the redirect when logging in from a specific page, please try the following edit in the /components/com_jfbconnect/controllers/authenticate.php . Around line 98, you'll see a block of code that looks like:In there, we'll add some code to detect if the redirection to the 'current' page is the page you have your special login button on and, if so, update the redirection to whatever page you want to go to:else $return = 'index.php'; JFactory::getApplication()->setUserState('com_jfbconnect.login.return', $return); }I hope that helps, but please let us know how it goes or if you run into any issues.else $return = 'index.php'; if ($return == 'index.php?option=com_blah...') // or '/SEF-URL') $return = "link-to-page-to-return-to.html'; JFactory::getApplication()->setUserState('com_jfbconnect.login.return', $return); }
Thanks,
Alex
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.