[#4321] Not to redirect to home page after first login

10 years 5 months ago - 10 years 5 months ago #236328 by Wai Wai
I have two different landing pages with two CB login modules for different users.

Extensions --> Module Manager --> CB Login 1
Login Redirection URL is blank (to reload the current page)
Logout Redirection URL = # (to reload the current page)

Extensions --> Module Manager --> CB Login 2
Login Redirection URL is blank (to reload the current page)
Logout Redirection URL = # (to reload the current page)

Components --> Community Builder --> Configuration --> Registration
URL for first login visit is blank (to reload the current page for the first login too)

When people login in, it redirects them to the home page. This only happens on their first login, I need them to stay on the page after login successful even the first time.

Is my configuration wrong? May I know how I should configure to achieve it. Thank.

Please Log in to join the conversation.

10 years 5 months ago #236380 by krileon
As long as all your CB modules login redirects are blank and the first time login redirect is blank then it should always return to previous location unless previous location isn't valid (for example if they click confirmation link and login via module on the confirmation page it'll send to home).


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 to join the conversation.

10 years 5 months ago - 10 years 5 months ago #236401 by Wai Wai
I configured Login Redirection URLs for both login modules.

Extensions --> Module Manager --> CB Login 1
Login Redirection URL = index.php?option=com_content&view=category&layout=blog&id=75&Itemid=167

Extensions --> Module Manager --> CB Login 1
Login Redirection URL = index.php?option=com_content&view=category&layout=blog&id=74&Itemid=127

But it still doesn't work for first login.

1. I browse the landing page first.
2. Then I login using login module in landing page.
3. If it is not first login, reload the page. It works.
If it is first login, it redirects to home page.

Login Redirection URL = [What page will the login redirect to after login. If let blank will reload current page]

URL for first login visit = [Enter the URL to display on the very first login after registration. Leave blank for normal login also the first time.]

As Login redirection URL is blank, so should reload the current page. It works.
As URL for first login visit is blank, so it should follow the normal login. It doesn't work.

Does it mean I can't configure the first login visit to stay on current page? It will always redirect to previous location or home page if it is blank?
Attachments:

Please Log in to join the conversation.

10 years 5 months ago - 10 years 5 months ago #236435 by krileon
Reviewed source, first login always sends to home or to the URL you specified. Will fix for next release to use the return URL sent to the login function this way it can return to previous location properly.

forge.joomlapolis.com/issues/4321


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.187 seconds

Facebook Twitter LinkedIn