Home › Support › English Support › [Resolved] Contact From 7 Redirect with Multiple Domains
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Language Redirection
This topic contains 4 replies, has 1 voice.
Last updated by alexandruC-8 1 year ago.
Hi, based on the topic i found here: https://wpml.org/errata/contact-form-7-secondary-language-form-submission-fails/
I added the code in my functions.php because of the errors I was getting with the secondary domain when trying to submit the contact form.
The problem I have now is that I can't redirect the user to a success page if I disabled AJAX for contactform7.
How can I have multiple domain working contactform7 with redirection on success?
Is there any setting for this?
How can I overcome this?
I have found why I get these errors. It seems that WPML is keeping the primary domain for the JSON string. Check attached
I found the fix after hours and hours of searching. Add:
add_filter( 'rest_url', 'wpml_permalink_filter' );
In your functions.php and the url of the JSON post will start working.