Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

CB 2.x Login Redirect problem

7 years 11 months ago #291122 by researchware
CB 2.x Login Redirect problem was created by researchware
Using CB 2.1.2 with Joomla 3.6.5. I have a URL on our site ( www.researchware.com/downloads/thetoolshed.html ) for Registered Users. We want to sent this URL out in an email promotion to our customers. When they click on the link in the email, they are not yet logged into the site, so they are redirected to the Login page. After logging in, they end up at their profile instead of the target page (/downloads/thetoolshed.html)

I have give a specific example, but this is a common practice for a lot of sites - sending an email with a URL that requires a login. The user click on the URL, gets to a login page, logs in, and then gets redirected to the URL they originally clicked on. So we are not looking to hard-code this specific URL. We're looking for a general solution that lets CB redirect to the original URL after a successful login.

The CB Configuration > Registration > First Login Redirect is blank. The CB Login Module > Login Options > Login Redirection URL is blank (but we have also tried # based on a very old forum post). This doesn't work. I have searched the forums and have only found OLD threads about this issue from community builder versions as far back as CB 1.2. Most of which involved altering PHP code!

Surely there is a way to this common behavior in CB 2.x? Thank you to anyone and everyone in advance for any help with this. Perhaps I just missed something obvious.

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

7 years 11 months ago #291125 by researchware
Replied by researchware on topic AW: CB 2.x Login Redirect problem
Found the solution: In the Community Builder System plugin, go to the "Parse URLs" tab and set "Pass Return URLs" to Disabled.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
7 years 11 months ago #291143 by krileon
Replied by krileon on topic AW: CB 2.x Login Redirect problem
Disabling that shouldn't return you to the location, but should do the opposite assuming the page you tried to access passed a return URL to begin with. Is it returning the user to the proper location with that disabled?


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.

7 years 11 months ago #291150 by researchware
Replied by researchware on topic AW: CB 2.x Login Redirect problem
Yes. It is working. We have not yet discovered any undesired side-effects. One of the staff here found this solution on a Google search at:

www.pages-and-items.com/extensions/redirect-on-login/faqs#faqnoanchor

In the FAQ: Configuration section down the page a bit under the title "Login after no-access does not go to previous page"

Of course, if there is a correct (Joomlapolis) way of doing this, please let us know.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
7 years 11 months ago #291152 by krileon
Replied by krileon on topic AW: CB 2.x Login Redirect problem
The entire point of that feature is to take the &return URL from the accessed URL and pass it to CBs login form. Disabling it should prevent that from working. Meaning it shouldn't return you to the correct location when disabled. Is the URL restricted to registered users using the access parameter on the menu item or is it restricted by an extension?


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.

7 years 11 months ago #291168 by researchware
Replied by researchware on topic AW: CB 2.x Login Redirect problem
The URL (in my 1st post) is a Menu item (set to Registered users) to a Single Article (set to Registered users), so no special groups.

The idea is very basic. Email members (Registered users) a URL to contents restricted to Registered users. They click on the URL, CB sees they are not yet logged in, redirect to Login page. They log in, then CB should send them to the original URL - whatever it was (i.e. solution should not be URL specific).

If this settings (that works) is not the "Right" way to do it, please give us the "Right" way to do this basic function in CB?

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

Moderators: beatnantkrileon
Powered by Kunena Forum