Topic-icon Redirect after Login

Active Subscriptions:

None
13 years 8 months ago #26498 by rodaro
Redirect after Login was created by rodaro
Hello
Im using the SCL module to log my users into the sistem

After logged in the go to a URL that id not clear and its showing a 404 error page.
Where can I set up the redirect URL for JFB?

please let me know

thanks in advance!
The topic has been locked.
Support Specialist
13 years 8 months ago #26511 by alzander
Replied by alzander on topic Redirect after Login
The redirection options for Facebook logins are configured in the Configuration area of JFBConnect. There are are separate New User and Returning User login options. Hope that helps you configure things how you need, but if you still run into issues, just let me know!

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

None
13 years 8 months ago #26531 by rodaro
Replied by rodaro on topic Redirect after Login
Hello Alex, thanks for getting back to me
I've set up the URL for redirection after log in configuration -> login / logout ->Returning user redirection.
I've set up an item menu as external url with the exact URL I want them to be redirected, and its being set to:
www.worldhotels.com/en/fb-connect?return...u&view=loginregister

Why is this happening? Can you please let me know if something is being done wrong for me?

Im attaching the screnshot on how it is displayed.

Thanks in advance!
File Attachment:
File Attachment:
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #26925 by koyan
Replied by koyan on topic Redirect after Login
Hello,
I have a different problem with the redirection after login
I have set Enable New User Redirection and Enable Returning User Redirection to NO in the component configuration, and Redirect on Joomla Login also to NO in the module. Still, whenever a user logins, they get redirected to the home page.
Is there something else I should check?

Thank you in advance
The topic has been locked.
Support Specialist
13 years 8 months ago #26935 by alzander
Replied by alzander on topic Redirect after Login
Koyan,
Not sure what your issue is. Are you using any sort of SEF extension on your site? If so, can you disable that or the built-in Joomla SEF URLs?

Rodrigo,
Very sorry for not responding! This post slipped away from me and I didn't realize I hadn't gotten back to you. I'm assuming you're still having the same issue? I just did some testing with using an External URL menu item as the redirection and there are issues with that. Not sure what the problem is, but I'm sure we can help figure it out if that's still something you're looking to do. I don't believe we've ever had a request to support an External URL after the user logs in, so it's simply not something we've tested that I know of.

Anyways, just let us know and we'll do what we can to get you going as soon as possible!

Thanks, and sorry again for the delay!
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #26938 by koyan
Replied by koyan on topic Redirect after Login
Hi there,

Upon more careful study, we saw that the redirection is labeled "on joomla login" . Apparently it does not work because we use the Community Builder login setting of the module. Which makes this a question:
Is there any way to make this work with the Community Builder login?

thanks
The topic has been locked.
Support Specialist
13 years 8 months ago #26945 by alzander
Replied by alzander on topic Redirect after Login
Ahh, that's likely the problem. Our redirect should work with CB, and we just tested on a development site with CB 1.8.1 and the redirect does work there with the following settings:
* Registration Component: CB
* Redirect on Joomla Login: Yes
* Joomla Login Redirection URL: <Some menu item>

If it's not working for you, please check if you have any CB plugins enabled or configuration settings that would also be trying to redirect the user. We are using a fresh CB install and it does work, but there's a lot that can be added to extend or modify CB and that's likely causing some issues.

Not sure what the problem would be on your site, but it should work under normal circumstances.

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

None
13 years 8 months ago #26958 by koyan
Replied by koyan on topic Redirect after Login
I'm sorry, I was not clear on what we want to acomplish here.
We DON'T want the user to be redirected after login. We want them to land on the same page as they were before. Although we have set Enable New User Redirection and Enable Returning User Redirection to NO, they still get redirected to home page.

As far as we can tell, we don't have any cb plugins or settings that try to redirect the user. The only thing that does, is the login in the Kunena pages.
The topic has been locked.
Support Specialist
13 years 8 months ago #26967 by alzander
Replied by alzander on topic Redirect after Login
Koyan,
Thanks for clarifying. I just tried on a development site and was able to recreate the problem. Can you please try the following fix? In the /modules/mod_sclogin/helper.php file around line 142, you'll see:
$url = $uri->toString(array('path', 'query'));
Update that to:
$url = $uri->toString(array('scheme', 'host', 'path', 'query'));
That seemed to work for us, but would love to hear your feedback!

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

None
13 years 8 months ago #26970 by koyan
Replied by koyan on topic Redirect after Login
Thank you,
This did the trick indeed.
Have a nice weekend.

Be well,
Konstantinos
The topic has been locked.