× Joomla Facebook Connect support forum

Topic-icon Login Redirection

Active Subscriptions:

None
14 years 6 months ago #15284 by mtk
Login Redirection was created by mtk
Hey,
I have set everywhere not to redirect upon login (module & component), but:
  • when I login with FB I do stay in the same page after connection
  • when I login with Joomla I do not stay in the same page after connection - and I'm redirected to home page
The topic has been locked.
Support Specialist
14 years 6 months ago #15286 by alzander
Replied by alzander on topic Login Redirection
If you're using the JFBCLogin module, there is a setting in the parameters called "Redirect on Joomla Login". Make sure that is set to "No". That should do it.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15287 by mtk
Replied by mtk on topic Login Redirection
as I said:

mtk wrote: I have set everywhere not to redirect upon login (module & component)


it is set to NO.
The topic has been locked.
Support Specialist
14 years 6 months ago #15290 by alzander
Replied by alzander on topic Login Redirection
Not sure then, we always have to check these things, as many times the simplest answer is the easiest.

Also, can you answer the following:
* If you use the standard Joomla Login module, and set the redirection to go to a specific page, when you login through that, do you go to the right page? There is no way in the Joomla Login module to stay on the same page.
* Do you have any other plugins installed that would try to redirect the user either on login, profile update, or other events? If yes, please try disabling them.

Finally, if none of the above help, can you link to a page with the issue so we can see what's going on?

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15291 by mtk
Replied by mtk on topic Login Redirection
I'm using the jFBConnect Login Module (not the Joomla one) - but yes, I just tried it, and it redirected me to the desired page.
I also have CB installed, but I don't use it's login module.

you can take alook at: www.joomla.co.il
(or any other inner page)


oh, we do use jFusion, but it does not redirect and we do not use its login module...
The topic has been locked.
Support Specialist
14 years 6 months ago #15295 by alzander
Replied by alzander on topic Login Redirection
It's likely not jFusion. I see you're using Community Builder, which is what we use to log the user into Joomla with. I just went to /index.php?option=com_docman&Itemid=32 and looked at the code the JFBCLogin module is creating. The redirect is properly being set to that page (encoded in the return value for the login form). However, not sure why CB isn't using that value to redirect the user.

We'll have to test the login redirection more with CB and see if we can recreate the cause. If you have any CB plugins that would redirect the user, that would be the cause of the problem as well.

You can try with the CB login module to see if that properly redirects as well, which will help narrow things down. Or, enable it on a page, so we can see what redirect URL it's inserting into the page so that we can compare it to ours to understand what's different.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15310 by mtk
Replied by mtk on topic Login Redirection

alzander wrote: It's likely not jFusion. I see you're using Community Builder, which is what we use to log the user into Joomla with. I just went to /index.php?option=com_docman&Itemid=32 and looked at the code the JFBCLogin module is creating. The redirect is properly being set to that page (encoded in the return value for the login form). However, not sure why CB isn't using that value to redirect the user.

We'll have to test the login redirection more with CB and see if we can recreate the cause. If you have any CB plugins that would redirect the user, that would be the cause of the problem as well.

You can try with the CB login module to see if that properly redirects as well, which will help narrow things down. Or, enable it on a page, so we can see what redirect URL it's inserting into the page so that we can compare it to ours to understand what's different.

Thanks,
Alex

CO Login is enabled in the same page you looked before.
it does not generate any redirect value.
The topic has been locked.
Support Specialist
14 years 6 months ago #15312 by alzander
Replied by alzander on topic Login Redirection
What version of Community Builder are you using? We'll have to test with that version. With CB 1.6+ (pretty sure), they use a redirect value. It's possible you're using an older version which doesn't have that ability.

The other options is to do a quick code change in /modules/mod_jfbclogin/tmpl/default.php. At about line 55, you'll see:
<?php if ($registerType != "communitybuilder")
Change that too:
<?php if (true)

Good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15339 by mtk
Replied by mtk on topic Login Redirection

alzander wrote: What version of Community Builder are you using? We'll have to test with that version. With CB 1.6+ (pretty sure), they use a redirect value. It's possible you're using an older version which doesn't have that ability.

The other options is to do a quick code change in /modules/mod_jfbclogin/tmpl/default.php. At about line 55, you'll see:

<?php if ($registerType != "communitybuilder")
Change that too:
<?php if (true)

Good luck,
Alex

well, yes, we are using a very old version of CB since we are still on J!1.5 and I never updated :(
will do that soon enough.

anyway, your fix worked.
I will get back to this when I upgrade to the latest CB...
The topic has been locked.
Support Specialist
14 years 6 months ago #15355 by alzander
Replied by alzander on topic Login Redirection
Glad that got it going for you. Should you need anything else, just let us know!

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It's not required, but certainly appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks, and good luck,
Alex
The topic has been locked.