Total Posts: 1015
I think that you can follow this method to fix your issue, in the template file to show social login button, add the following code to set return page:
and in your controller, get this url to redirect after login:
$currentUrl = Mage::helper('core/url')->getCurrentUrl();
Hope this helps.
$backUrl = Mage::getSingleton('core/session')->getBeforeUrl();