Hi There,
This is a post regarding my previous post here:
www.sourcecoast.com/forums/jfbconnect/jf...ebook-login-redirect . Could not see a way to add another post so i created a new one.
I have managed to find the issue to why the facebook login redirect did not work. What i was trying to achieve was to redirect a user to another url via the "return" variable and only redirect to my selected menu item if the "return" variable did not exist. However when logging in via the facebook icon it would only ever return to my selected menu item.
I made a small change to an ELSE IF statement in your "loginregister" model inside the method "getLoginRedirect". At the top of the method i added the following line of code to get the return url:
$return = JRequest::getVar('return', null, 'request', 'base64');
I then changed your ELSE IF statement from:
$configModel->getSetting('facebook_login_redirect_enable')
To:
$configModel->getSetting('facebook_login_redirect_enable') && ($return == null)
Making this change seemed to have solved the problem i was having. I'm not sure if this is a bug or if i was trying to make the component do something which it couldn't but im sure this would be a useful function for other users as the core joomla login allows the use of a return url as well.
Note: I made this change to the latest version of the component (4.1.2) so not sure if this would be the same for the other versions.