Skip to Content Skip to Menu

Redirect after login not working

  • cbrace
  • cbrace
  • OFFLINE
  • Posts: 64
  • Thanks: 5
  • Karma: 1
6 months 6 days ago #338118 by cbrace
Redirect after login not working was created by cbrace
Hi all,

Cannot get the redirect to work properly after login.

Ive checked the following:
- Joomla login plugins/modules = turned off
- CB System Plugin has enabled on redirect + rewrite
- URL set after login = index.php?option=com_comprofiler&view=userprofile

Any advice?
 

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
6 months 6 days ago #338120 by krileon
Replied by krileon on topic Redirect after login not working
Where is it sending you after login? There's also the first login redirect in CB > Configuration > Registration that applies on a users first login. Ensure you're editing the correct CB Login Module that's being used for the login. If linking to a login page it uses the parameters of the first CB Login Module available.

Please keep in mind you're supplying a URL without an Itemid. For Joomla this means it has no idea what menu item to associate with the URL. I recommend adding &Itemid=MENU_ID_HERE to the URL as well so it's associated with your CB profile menu item.


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.

  • cbrace
  • cbrace
  • OFFLINE
  • Posts: 64
  • Thanks: 5
  • Karma: 1
6 months 6 days ago #338121 by cbrace
Replied by cbrace on topic Redirect after login not working
It's an existing user that we want to redirect after login, so nothing to do with registration.

There is only 1 module available and I checked via the pre-text if it's the one. Another URL I tried with menu itemId is as following: index.php?option=com_comprofiler&Itemid=1279

I basically want to send people to a specific page, read that the SEF URLs are not possible right? Should redirect to /my-home/ if you get what I am saying functionally.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
6 months 6 days ago #338122 by krileon
Replied by krileon on topic Redirect after login not working
If you want it to redirect to home page you'd set the redirect URL to index.php. SEF URLs will work there, but they're not recommended because they could change (e.g. if you change the menu alias you just broke your redirect).

The login redirect absolutely should be working unless you've something else redirecting after login. You could have a 3rd part plugin doing that or if you've a redirect action configured in CB Auto Actions for example.


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.

  • cbrace
  • cbrace
  • OFFLINE
  • Posts: 64
  • Thanks: 5
  • Karma: 1
6 months 6 days ago #338123 by cbrace
Replied by cbrace on topic Redirect after login not working
Some more background information, I am manually migrating a J3 site to a J4 site. I've followed all steps on how it should set up. 

- auto actions is disabled
- system redirect (Joomla) is disabled
- url set for login = index.php?option=com_comprofiler&Itemid=1279 <- this is pointing not to the homepage but a specific 'homepage' for members only
- ive checked all modules for duplicates

Is there a way to debug what is happening on the form submit of login? I want to see if it loads the URL at any point

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
6 months 5 days ago #338124 by krileon
Replied by krileon on topic Redirect after login not working
Are you sure you're using CBs login module and not Joomla's? If you're using Joomla's then things might go wonky there. I'm really not sure what else to suggest. If still having issues after verifying you're using CBs login module please PM backend super login credentials and will review your install to try and see what's going wrong.


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