Contact form doesn’t submit on pages with query string
-
I have a site with two languages using WPML.
Contact forms on pages with the default language submit fine.
For instance, if I’m on https://example.org/contact, the contact form posts to https://example.org/wp-json/contact-form-7/v1/contact-forms/1/feedback and is submitted successfully.
Contact forms on pages with another language don’t submit at all.
For instance, if I’m on https://example.org/contact?lang=de, the contact form posts to https://example.org/wp-json/?lang=de/contact-form-7/v1/contact-forms/1/feedback and that results in a 404 (in the console).
The problem is that the endpoint is appended after the query string. The solution would be to move the query string to the end of the URL.
Is there a filter to manipulate the URL that CF7 posts to when the form is submitted via AJAX?
- The topic ‘Contact form doesn’t submit on pages with query string’ is closed to new replies.