Hello @GraphicPass,
Thanks for sharing your question with the Klaviyo Community!
Since this issue does pertain to a legacy form, I would recommend working with a developer you are familiar with to further investigate and troubleshoot this behavior. Klaviyo also has an extensive network of agency partners you can work with as well!
A common solution as you’ve highlighted would be to omit the data-ajax-submit="//manage.kmail-lists.com/ajax/subscriptions/subscribe" from the code altogether to ensure that the custom/legacy code read the following:
<form id="email_signup_aboutus" class="klaviyo_styling klaviyo_gdpr_embed_XXXXXX" action="//manage.kmail-lists.com/subscriptions/subscribe" method="GET" target="_blank" novalidate="novalidate">
Another reason this redirect may be occurring is that there are two forms on the website with the same id. To remedy this issue, you'll need to update the id of one of the forms. Detailed steps are outlined below.
- Go to the page where the form(s) exist. Right click on the “email” field of the form and inspect the code.
- Confirm the form is a Klaviyo form and take notice to the Form ID and its corresponding JavaScript.
- If there is another form on the page with the same Form ID, the JS will break and cause the form to redirect to the Klaviyo Subscribe page. To prevent this, change the Form ID and Javascript for ONE of the forms to separate the two.
- With this now being separate of the other Klaviyo form, the form should submit as intended with no redirect.
As another work around, you can replace the custom/legacy form you have built out with a Klaviyo built embedded form. Some articles that may prove helpful in learning the difference and capability of the Klaviyo built signup forms, i would recommend looking into the following articles:
Hope this helps!
David