Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Auto-Action Redirect "goback" not working

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 6 months ago - 11 years 6 months ago #225628 by dotcom22
hello

I setup Auto-Action for "goback" to previous page after user profile update but this don't work. I tried also with "goback1" and "return" with no more success...

See attached screenshot.. I miss something ?

thank

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
Attachments:
Last edit: 11 years 6 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225673 by krileon
Replied by krileon on topic Auto-Action Redirect "goback" not working
It does a window.history.go or window.history.back through JS. If another redirect occurs before the JS executes then it won't do anything. PHP redirects will happen before the JS does as JS is client side and the PHP is server side and always happens first. So the usage will not work in all cases. "return" only works if CB Auto Actions could find a return URL in the current URL or in session and is only relevant to some triggers (believe login populates it and various GJ triggers do too). There is also "reload" which does a window reload with JS (again if PHP redirect happens this won't fire).


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 6 months ago #225722 by dotcom22
Replied by dotcom22 on topic Auto-Action Redirect "goback" not working
I don't have any other redirect in place..except one Auto-Action who redirect to another specific page but with trigger after user login.

Ok is not a big deal if I can't made desired redirect to previous page...even if this was better in my specific case.

Other question:

I noticed if user finally do not update his profile but click just on "cancel" button (?reason=canceledit), no trigger are available for redirect somewhere and user go back to his profile view. I wondering if is possible to find a workaround for redirect user somewhere instead to go back to his profile..

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225758 by krileon
Replied by krileon on topic Auto-Action Redirect "goback" not working

I noticed if user finally do not update his profile but click just on "cancel" button (?reason=canceledit), no trigger are available for redirect somewhere and user go back to his profile view. I wondering if is possible to find a workaround for redirect user somewhere instead to go back to his profile..

A trigger is fired for that. You can use the below trigger to add actions that only fire on profile edit cancel.

onAfterUserProfileEditCancel


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 6 months ago #225772 by dotcom22
Replied by dotcom22 on topic Auto-Action Redirect "goback" not working

onAfterUserProfileEditCancel


Excellent...work well.. :silly:

I did not found this trigger in Auto-Action list... I suggest to add this in future release..

thank

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225773 by krileon
Replied by krileon on topic Auto-Action Redirect "goback" not working

I did not found this trigger in Auto-Action list... I suggest to add this in future release..

Done, added for next release.


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: dotcom22

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

Moderators: beatnantkrileon
Powered by Kunena Forum