Topic-icon Help with Redirect after login

Active Subscriptions:

None
9 years 8 months ago #46483 by pdparisi
I have a site that is J3.3.3 with JFBConnect, JomSocial and two SCLogin modules. I want one to be a mobile login and one the normal. When the user uses the normal login I want the redirect to go to /mobile1 but it always redirects to the page specified in JFBconnect.

How can I fix this?

sendposts.saviorlabs.com/mobile is the mobile login page. It should redirect to /mobile1
The topic has been locked.
Support Specialist
9 years 8 months ago #46492 by alzander
Do you mean with the social login, that you want the redirection to be different based on which SCLogin module they are using?

Unfortunately, right now, JFBConnect doesn't have a method to provide a different login redirection based on the SCLogin module that is used. The only option I can suggest right now is using the "Same Page" setting for your redirection, which should leave the user in the mobile version of your site after they login instead of going to a specific menu item.

I hope that helps, but if not, or you need more assistance, please let me know. We may be able to help come up with some other ideas or even some code changes that should help, but it may take some effort.

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

None
9 years 8 months ago #46493 by pdparisi
Thanks for the help.

Yes that is what I need - I need each SCLogin module to be able to redirect where they are set to redirect. Any other ideas on how to make this work? Even if I have to hack it for now.
The topic has been locked.
Support Specialist
9 years 8 months ago #46642 by alzander
Can you explain to me how the mobile SCLogin module is used vs the 'standard' one? Are you already detecting that the user is in a mobile environment, or is the user making the choice to login to the mobile site?

I'm trying to think of the best way to implement what you're looking for. Knowing if your site is already aware that the user is in mobile, and how the site knows that, will help make the code a little simpler to modify.

Thanks,
Alex
The topic has been locked.