Actually, even if you login via EasyDiscuss's toolbar for example, it will redirect to EasySocial user profile.
It seems to be an issue for third-party login forms as well as com_user menu item and it seems to be a known issue according to that Github page above. I noticed that mod_login does not do this; in other words, using mod_login with the Default or 'same-page' login redirection option set, then it works fine. That helper sets the return URL like this:
public static function getReturnUrl($params, $type)
{
$app = JFactory::getApplication();
$item = $app->getMenu()->getItem($params->get($type));
if ($item)
{
$url = 'index.php?Itemid=' . $item->id;
}
else
{
// Stay on the same page
$url = JUri::getInstance()->toString();
}
return base64_encode($url);
}
And by this method, things seem to work for same-page login redirection. Not so with EasyDiscuss/Social/Blog or a number of other 3d party login forms.
Jordan