Vue.js form with prerender shows existing form, but keeps sending back 404, could be a redirect issue?

Ah, yeah, taking another look at your redirects, I see a few things that might be a problem:

  • Your _redirect for /feedback is set up as if Netlify is the server side of a REST API, but that’s not the case- with Netlify, there is no server at runtime, so you can go ahead and remove that rule.
  • Your third rule needs an index.html, so /* /index.html 200- that should fix your request url basically being empty

The way our forms work is that we get the request URL from your site. We parse the HTML and look for different attributes. If there’s an action there, we return the file listed at your action, which has already been built since that’s how Netlify and the Jamstack work- we generate your site assets and then deploy them to our CDN nodes. In your case, since your action=/feedback/success, we’ll return the file at yoursite.netlify.com/feedback/success , so that page has to be built by the time we say “now, show the success page!”

Do you want to make those changes to your _redirects file and let us know if that gets you closer?

1 Like