#Remove `_data` from Form Posts

1 messages · Page 1 of 1 (latest)

jolly pewter
#

I'm having issues using form requests. All my requests end up with a _data search param which ends up loading json. I want to properly redirect to pages and I think I need to prevent the _data param from being passed. How do I fix this?

warm hollow
#

do you have an example of the error _data is causing? Or really what your specific error is?

#

If youre looking to hit actions, you need the Form to have an associated method="post", and if you're hitting loaders the Form must serialize its data into the route because Get requests don't accept any request bodies