Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

[SOLVED] Redirect after login group depending

  • juansolos
  • juansolos
  • OFFLINE
  • Posts: 14
  • Thanks: 1
  • Karma: 0
9 years 9 months ago - 9 years 9 months ago #260313 by juansolos
Hello,
I try to redirect the user to a spécific page after login.
The redirect page is different for the 2 groups.

I am able to do that with the auto action plugin.
2 auto action, trigger "onAfterLogin". But the first connexion url parameter doesn't work anymore.

The first time the user logins, the page must be another one (the same for the 2 groups).

So i would like to do
user login
first time connexion : redirect to acymaling form (done with cb configuration)
and after previous form validation or after user login( not the 1st time) go to page 1 if groupA, or go to page2 if groupB.

Any idea?
Regards

CB 1.9.1
Last edit: 9 years 9 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
9 years 9 months ago - 9 years 9 months ago #260344 by krileon
Replied by krileon on topic Redirect after login group depending
Can't be done easily on CB 1.x as there's no after first login trigger. It's doable in CB 2.x as there's a onAfterFirstLogin trigger you can act on to redirect on their first login. If you used a custom plugin instead of CB Auto Actions you'd be able to use onBeforeFirstLogin as the return URL is sent as a reference, but aside from that it's not very doable on CB 1.x. As onAfterLogin always fires no matter if it's first login or not your redirect will always take place so the first login redirect in CB > Configuration > Registration can't take affect.


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.
Last edit: 9 years 9 months ago by krileon.
The following user(s) said Thank You: juansolos

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

  • juansolos
  • juansolos
  • OFFLINE
  • Posts: 14
  • Thanks: 1
  • Karma: 0
9 years 9 months ago #260527 by juansolos
Replied by juansolos on topic Redirect after login group depending
Hello,
ok.
I have update to V2.
I had to reconfigure my auto action plugin.

But it seems to be perfect.

Thanks regards

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

Moderators: beatnantkrileon
Powered by Kunena Forum