Redirect after login problem
-
Hi,
So i applied exactly what you prescribed in this topic to redirect based on query parameter “redirect_to”
https://www.ads-software.com/support/topic/variable-redirect-on-user-registration/It works but after the redirection it always removes the “:” after https so it gives an error page always
for example if the redirect_to is https://website.one the page redirects to https//website.oneHere is the form code
{"type":"form","data":{"fields":[{"id":"text-1","element_id":"text-1","form_id":"wrapper-1511347711918-1669","parent_group":"","type":"text","cols":"12","required":"true","field_label":"","placeholder":"?????? ??????????","wrapper_id":"wrapper-1511347711918-1669","required_message":"?? ???? ??? ??? ????? ?????","conditions":[]},{"id":"password-1","element_id":"password-1","form_id":"wrapper-1511347712118-1739","parent_group":"","type":"password","cols":"12","required":"true","required_message":"?? ???? ??? ??? ????? ?????","field_label":"","placeholder":"???? ??????","description":"","confirm-password-label":"Confirm Password","confirm-password-placeholder":"Confirm new password","wrapper_id":"wrapper-1511347712118-1739","conditions":[]},{"id":"hidden-1","element_id":"hidden-1","form_id":"wrapper-2915-1316","parent_group":"","type":"hidden","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-2915-1316","field_label":"","default_value":"query","prefill":"redirect_to"}],"settings":{"pagination-header":"nav","paginationData":{"pagination-header-design":"show","pagination-header":"nav"},"formName":"????? ??????","version":"1.28.1","form-border-style":"none","form-padding":"","form-border":"","fields-style":"open","field-image-size":"custom","validation":"on_submit","akismet-protection":"0","form-style":"default","enable-ajax":"true","autoclose":"true","submission-indicator":"show","indicator-label":"?????...","form-type":"login","submission-behaviour":"behaviour-redirect","thankyou-message":"Thank you for contacting us, we will be in touch shortly.","redirect-url":"https://majalisnoor.com/wp-admin/","submitData":{"custom-submit-text":"????","custom-invalid-form-message":"???? ????? ?? ?????????? ?????? ???????","conditions":[]},"validation-inline":"1","form-expire":"no_expire","use-admin-email":"true","admin-email-title":"","admin-email-editor":"","admin-email-recipients":[],"user-email-title":"","user-email-editor":"","form-padding-top":"0","form-padding-right":"0","form-padding-bottom":"0","form-padding-left":"0","form-border-width":"0","form-border-radius":"0","cform-label-font-family":"Roboto","cform-label-custom-family":"","cform-label-font-size":"12","cform-label-font-weight":"bold","cform-title-font-family":"Roboto","cform-title-custom-family":"","cform-title-font-size":"45","cform-title-font-weight":"normal","cform-title-text-align":"left","cform-subtitle-font-family":"Roboto","cform-subtitle-custom-font":"","cform-subtitle-font-size":"18","cform-subtitle-font-weight":"normal","cform-subtitle-text-align":"left","cform-input-font-family":"Roboto","cform-input-custom-font":"","cform-input-font-size":"16","cform-input-font-weight":"normal","cform-radio-font-family":"Roboto","cform-radio-custom-font":"","cform-radio-font-size":"14","cform-radio-font-weight":"normal","cform-select-font-family":"Roboto","cform-select-custom-family":"","cform-select-font-size":"16","cform-select-font-weight":"normal","cform-multiselect-font-family":"Roboto","cform-multiselect-custom-font":"","cform-multiselect-font-size":"16","cform-multiselect-font-weight":"normal","cform-dropdown-font-family":"Roboto","cform-dropdown-custom-font":"","cform-dropdown-font-size":"16","cform-dropdown-font-weight":"normal","cform-calendar-font-family":"Roboto","cform-calendar-custom-font":"","cform-calendar-font-size":"13","cform-calendar-font-weight":"normal","cform-button-font-family":"Roboto","cform-button-custom-font":"","cform-button-font-size":"14","cform-button-font-weight":"500","cform-timeline-font-family":"Roboto","cform-timeline-custom-font":"","cform-timeline-font-size":"12","cform-timeline-font-weight":"normal","cform-pagination-font-family":"","cform-pagination-custom-font":"","cform-pagination-font-size":"16","cform-pagination-font-weight":"normal","payment_require_ssl":"true,","submission-file":"delete","login-username-field":"text-1","login-password-field":"password-1","remember-me":"true","remember-me-label":"??????","remember-me-cookie-number":"1","remember-me-cookie-type":"months","hide-login-form":"","hidden-login-form-message":"<p style=\"text-align: right\">??? ???? ?? ???? ?????</p>","store_submissions":"","form_name":"-","form_status":"publish","use-custom-css":"","sc_email_link":"1","sc_message":"<p>Your form has been saved as draft and a resume link has been generated so you can return to the form anytime within {retention_period} days from today. Copy and save the link or enter your email address below to have the link sent to your mail.</p><p>These fields weren't saved to your submission draft: Paypal, Stripe, Signature, Password, Captcha, and Upload. Kindly fill them out before submitting the form.</p>","honeypot":"1","use_donotcachepage":"1","akismet-protection-behavior":"fail","spam-fail-message":"?? ?????? ????? ??????? ?????","use_ajax_load":"","notification_count":0,"previous_status":"publish"},"client_id":"","integration_conditions":[],"behaviors":[{"slug":"behavior-4622","autoclose":"1","autoclose-time":"5","newtab":"sametab","submission-behaviour":"behaviour-redirect","thankyou-message":"Thank you for contacting us, we will be in touch shortly.","redirect-url":"https://website.one","label":"Redirect to home","conditions":[{"element_id":"hidden-1","rule":"is","value":""}]},{"slug":"behavior-9488","autoclose":"1","autoclose-time":"5","newtab":"sametab","submission-behaviour":"behaviour-redirect","thankyou-message":"Thank you for contacting us, we will be in touch shortly.","redirect-url":"{hidden-1}","conditions":[{"element_id":"hidden-1","rule":"is_not","value":""}]}],"notifications":[]},"status":"publish","version":"1.28.1"}
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Redirect after login problem’ is closed to new replies.