Skip to Content Skip to Menu

Redirect to profile after login on register page

  • activha
  • activha
  • ONLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
9 years 4 weeks ago #270948 by activha
I did not find the way to do this with the new auto action.

When my users log in on the register page with the connection module, I need them to be redirected to their profile instead of staying on the register page and get the message "you're already logged in"

But at the same time I dont want the redirect to be handled by the module as we use it on other pages on which users have to stay.

Any possibility with auto action ?

thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48435
  • Thanks: 8275
  • Karma: 1443
9 years 4 weeks ago #270954 by krileon
Yup, that's doable. Use the onBeforeRegisterFormRequest trigger in a Redirect action then set User to User so it uses the viewing user object. Next set Access to All Registered Users. Now configure your redirect URL as follows.

index.php?option=com_comprofiler&view=userprofile

The below substitution for the URL probably will also work fine and should include the appropriate Itemid automatically.

[cb:url location="profile_view" /]


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.
The following user(s) said Thank You: activha

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

Moderators: beatnantkrileon
Powered by Kunena Forum