× Joomla Facebook Connect support forum

Topic-icon Redirect on auto-login

Active Subscriptions:

None
12 years 9 months ago #11639 by playak
I got tired of being redirected to the front page on auto-login, so I changed one little line in components/com/jfbconnect/libraries/facebook.php:

// $redirect = JRoute::_('index.php');
$redirect = JRoute::_($_SERVER);

Seems to work fine and I consider it a big improvement, so hopefully you guys can build it into a next version. I'll watch it in action to make sure it doesn't create loops or have other undisirable side effects, but it think it should be ok. If not, I'll report it here.

Cheers,
Jeroen
The topic has been locked.
Support Specialist
12 years 9 months ago #11641 by alzander
Replied by alzander on topic Redirect on auto-login
Jeroen,
Not sure what version of JFBConnect you're using, but the auto-login redirect problem was fixed a few versions ago. It only affected a few sites, because the redirection to the index.php only happened under certain configuration circumstances, if I recall. Either way, it isn't a problem anymore.

Additionally, that whole redirection logic has been moved into the /controllers/loginregister.php file into a common function that all login routes take (auto, full joomla user, facebook only), which makes the logic a lot simpler than we were doing before.

Thanks for your code change though, and hopefully it will help others if they're using an older version.
The topic has been locked.