alzander wrote: 1) The redirect you're talking about is strictly for users logging in with Joomla accounts.. not using the Login With Facebook button, correct?
1a) If so, is the Login With Facebook process working as you'd expect?
2) Do you have the "Automatically Login Facebook Users" setting enabled? If so, please try disabling it and testing.
$menu = JSite::getMenu();
$item = $menu->getItem($itemId);
if ($item)
$url = $item->link . '&Itemid=' . $itemId;$app = JFactory::getApplication();
$router = $app->getRouter();
$db = JFactory::getDbo();
//Derived from mod_login Joomla 1.6, but modified to be backwards compatible with 1.5
$query = "SELECT link FROM #__menu WHERE published=1 AND id=".$db->quote($itemId);
$db->setQuery($query);
if ($link = $db->loadResult())
{
if ($router->getMode() == JROUTER_MODE_SEF)
{
$url = 'index.php?Itemid=' . $itemId;
}
else
{
$url = $link . '&Itemid=' . $itemId;
}
}Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
