Topic-icon Redirect login with community builder

Active Subscriptions:

None
10 years 8 months ago #35027 by luinap
Hello I would like to do a redirect to login. I'm using your module with community builder. Only after the login is always on the home page, how do I change the page?

Thanks Luigi
The topic has been locked.
Support Specialist
10 years 8 months ago #35029 by alzander
Luigi,
I'm not sure what you mean. Can you explain a little bit more about when you want to redirect (after login, when clicking the register button, or something else)?

There is a "Joomla Login Redirection URL" setting in the SCLogin module. Is that not working for you?

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

None
10 years 8 months ago - 10 years 8 months ago #35030 by luinap
I use Community builder, I would like to redirect after login go on the "Your Profile." Instead go to the home page.
File Attachment:



p.s. As you can see from the screenshot I have selected the menu with the "Your Profile" ... but it does not work.
Last edit: 10 years 8 months ago by luinap.
The topic has been locked.
Support Specialist
10 years 8 months ago #35038 by alzander
We're looking into what would be causing this. Our redirect should work with CB, but will have to do some testing and digging to find out.

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

None
10 years 7 months ago #36612 by buztan
Wondering if any updates on this. I find that if I log in with SCLogin clicking on the Facebook button, the redirect works fine, but if I log in with name and password (my system is running Community builder) it logs in ok but stays on the same page.

The redirect URL is set for the same page in both SCLogin module and JFBConnect configuration.
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #36653 by diehag
Same problem here, not redirect with CB
The topic has been locked.
Support Specialist
10 years 7 months ago #36672 by alzander
We're going to be diving into this issue tomorrow for an update to the SCLogin module due out next week. Can any of you let me know the following:
* This only happens with Joomla Login (not Facebook, Google or LinkedIn, if you have those extensions installed)?
* What version of CB are you using?
* Are you using an SEF? If so, is it Joomla SEF or a 3rd party extension?

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

None
10 years 7 months ago #36691 by diehag
For me only with joomla login Jlinked works fine.
CB version 1.9
This is the new verssion of the site with sef url off, i donĀ“t test with sef.
This is a 3.1 on the main site that is 2.5 works fine. On 2.5 site the version of the module is 3.0.
The topic has been locked.
Support Specialist
10 years 7 months ago #36715 by alzander
Thanks all for your patience and information. It's helped narrow things down. It seems CB is a little more picky with their redirection URLs then we realized, but on investigation, it's a pretty easy fix. If interested to implement now, please edit the /modules/mod_sclogin/tmpl/login_vertical.php (or login_horizontal.php, depending on your settings). In either file, around line 70, you'll see:
echo '<input type="hidden" name="return" value="B:' .  $jLoginUrl . '"/>';
Update that to:
echo '<input type="hidden" name="return" value="B:' . base64_encode(cbSef(base64_decode($jLoginUrl))) . '"/>';
Please let me know how that goes. The plan is to include this in the release next week, but having confirmation of the fix from real CB sites would be very helpful.

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

None
10 years 7 months ago #36797 by diehag
Thanks. Works perfect only i change the file "joomlaLogin_vertical.php " with an override.
The topic has been locked.