Skip to Content Skip to Menu

After Login redirect - Discrepancy between CB Login Module and CB Connect

  • sabroso
  • sabroso
  • OFFLINE
  • Posts: 29
  • Thanks: 5
  • Karma: 1
8 years 3 months ago #283918 by sabroso
Hi there,

I found the following discrepancy about how the “after login redirect” works in CB Login module (1) and CB Connect(2).

(1) By CB Login Module I mean using the user ID and password to login on the CB Login module.

(2) By CB Connect Login I mean using any of the social login button (e.g Sing in with Facebook) - also on the CB Login module but I need to differentiate when not using the user ID and PWD.

The “after login” configuration for each scenario is in a different place in the back end:
- for login via user ID and PWD the redirect URL is configured in the CB module configuration
- for login via Facebook sign in the redirect URL is in the CB Connect plugin config, in the login tab.

This is OK because it offers flexibility for the redirection depending on the login method used.

If I configure the same redirect URL for “after login redirect” in both places it works fine in both cases.

The problem I have is when I leave this redirect URL field blank in both cases because it does not behave the same way:
- If the user logs in with user id and password then the same page the user was at is relodaded but with the user logged in → this is the desired behaviour
- However if the user logs in via facebook button the user is redirected to the home page instead of staying in the same page where he logged in → this is undesirable because it does not allow me to include the CB login module in a shopping cart checkout process for example.

Can you reproduce the issue? Is there a solution?

NOTE: In the community builder system plugin I have the option “Pass return URL” enabled.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 3 months ago #283949 by nant

sabroso wrote: Hi there,

I found the following discrepancy about how the “after login redirect” works in CB Login module (1) and CB Connect(2).

(1) By CB Login Module I mean using the user ID and password to login on the CB Login module.

(2) By CB Connect Login I mean using any of the social login button (e.g Sing in with Facebook) - also on the CB Login module but I need to differentiate when not using the user ID and PWD.

The “after login” configuration for each scenario is in a different place in the back end:
- for login via user ID and PWD the redirect URL is configured in the CB module configuration
- for login via Facebook sign in the redirect URL is in the CB Connect plugin config, in the login tab.

This is OK because it offers flexibility for the redirection depending on the login method used.

If I configure the same redirect URL for “after login redirect” in both places it works fine in both cases.

The problem I have is when I leave this redirect URL field blank in both cases because it does not behave the same way:
- If the user logs in with user id and password then the same page the user was at is relodaded but with the user logged in → this is the desired behaviour
- However if the user logs in via facebook button the user is redirected to the home page instead of staying in the same page where he logged in → this is undesirable because it does not allow me to include the CB login module in a shopping cart checkout process for example.

Can you reproduce the issue? Is there a solution?

NOTE: In the community builder system plugin I have the option “Pass return URL” enabled.


What versions of everything?
Joomla?
CB?
CB Connect?

Please Log in or Create an account to join the conversation.

  • sabroso
  • sabroso
  • OFFLINE
  • Posts: 29
  • Thanks: 5
  • Karma: 1
8 years 3 months ago #283953 by sabroso
Joomla 3.6.0
CB 2.0.14
CB Connect 7.0.0

Thanks

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48512
  • Thanks: 8286
  • Karma: 1444
8 years 3 months ago #283960 by krileon

- However if the user logs in via facebook button the user is redirected to the home page instead of staying in the same page where he logged in → this is undesirable because it does not allow me to include the CB login module in a shopping cart checkout process for example.

Works fine in my tests, but you don't have access to latest builds. Your issue is likely already fixed. Right click and inspect element on one of the buttons to see if &return= is in the button URL. Again, as we do build releases I've no idea if you're up to date.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum