Skip to Content Skip to Menu

[SOLVED] Redirect on registration

  • carin
  • carin
  • OFFLINE
  • Posts: 417
  • Thanks: 18
  • Karma: 0
8 years 8 months ago - 8 years 8 months ago #288738 by carin
Replied by carin on topic Redirect on registration
Thanks. But the [post_HIDDEN_INPUT_NAME] gives "http%3A%2F%2Flocalhost%2Fkiwi%2Fde%2Flisting.html" which gives a 404. Setting "Format Functions" to yes does not help. Using [cb:userfield field="post_HIDDEN_INPUT_NAME" /] does not work either.

CB 2.0
Last edit: 8 years 8 months ago by carin.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49447
  • Thanks: 8467
  • Karma: 1465
8 years 8 months ago #288759 by krileon
Replied by krileon on topic Redirect on registration
Ensure CB Auto Actions is up to date. Some actions were urlencoding the entire URL string when the URL was a single substitution.


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.

  • carin
  • carin
  • OFFLINE
  • Posts: 417
  • Thanks: 18
  • Karma: 0
8 years 8 months ago #288806 by carin
Replied by carin on topic Redirect on registration
I did not know I had to use url encoding.

The redirect now works on login. But when I add the onAfterSaveUserRegistration trigger the redirect goes to http://localhost/[post_HIDDEN_INPUT_NAME]. why does the trigger even matter on how the url gets handled?

CB 2.0

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49447
  • Thanks: 8467
  • Karma: 1465
8 years 8 months ago #288847 by krileon
Replied by krileon on topic Redirect on registration
That's not going to work because your string will URL encode. You need to specify strictly your URL as the substitution. Example as follows.

URL: [post_returnurl]

why does the trigger even matter on how the url gets handled?

It doesn't. That's just the appropriate trigger to be using as it's fired after all frontend registration processes have completed and is just before the registration complete message.


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.

  • carin
  • carin
  • OFFLINE
  • Posts: 417
  • Thanks: 18
  • Karma: 0
8 years 8 months ago - 8 years 8 months ago #288859 by carin
Replied by carin on topic Redirect on registration
I dont know what that means: "That's not going to work because your string will URL encode. You need to specify strictly your URL as the substitution. Example as follows. URL: [post_returnurl]"
As I said earlier: "But the [post_HIDDEN_INPUT_NAME] gives "http%3A%2F%2Flocalhost%2Fkiwi%2Fde%2Flisting.html" which gives a 404." I updated CB today again, does not help. So for me it is impossible to figure out what that field actually requieres to get it to work.

Again, the trigger onAfterLogin puts out the correct URL, the trigger onAfterSaveUserRegistration puts out http://localhost/[post_HIDDEN_INPUT_NAME]. Again, why does the trigger matters on the output?

Can you please switch that off. It is really enoying when you edit your posts:
"Flood protection! Please wait 240 seconds before submitting an another message."

CB 2.0
Last edit: 8 years 8 months ago by carin.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49447
  • Thanks: 8467
  • Karma: 1465
8 years 8 months ago #288861 by krileon
Replied by krileon on topic Redirect on registration
That's because it's being URL encoded. You need to ensure you've the latest CB Auto Actions release, which won't URL encode it. If it's still URL encoded then it is being encoded before it is sent to CB Auto Actions and in that case you should base64 encode the hidden value then base64 decode it using format functions in CB Auto Actions. That's how login module and all other return URL usages function (base64 encode and decode).


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