Hi. After my visitors submit their email in the newsletter signup form (in the footer), it shows them a reCapture verification and then shoots to the top of the page, but if they scroll down again, they’ll see “You have been subscribed to our newsletter.” (in place of the submit button).
What I’d like to do is redirect to a thank you page. Here’s what I was trying in newsletter.liquid, but it doesn’t make a difference.
Any ideas?
{%- form 'customer', id: newsletter_id, class: 'Newsletter Form' -%}
{%- if form.posted_successfully? -%}
{{ 'home_page.newsletter.success' | t }}
{%- else -%}
{%- if form.errors -%}
{{ form.errors.messages['email'] }}
{%- endif -%}
{%- endif -%}
{%- endform -%}
Weird. That should work I would have thought. Anything weird about this form setup? Or is it the reCapture step getting in the way? I’ll try turning off the latter.
I still find it pretty sad that the signup UX is still broken; with the challenge footer anchor link issue AND this with the lack of control on a signup redirect. 2021…
I wonder if @Kinjaldavra or @diego_ezfy would know? Trying to redirect a user after they signup in the Debut theme using the footer email form. Any ideas? Thank you!