diff --git a/src/content/docs/en/guides/view-transitions.mdx b/src/content/docs/en/guides/view-transitions.mdx index a56910039d588..027af7bfdb2cc 100644 --- a/src/content/docs/en/guides/view-transitions.mdx +++ b/src/content/docs/en/guides/view-transitions.mdx @@ -376,6 +376,14 @@ The `` router will trigger in-page transitions from `
` By default, your page will transition after a form is submitted, even if you are using `event.preventDefault()` to prevent this behavior. +By default, Astro submits your form data as `multipart/form-data` when your `method` is set to `POST`. If you want to match the default behavior of web browsers, use the `enctype` attribute to submit your data encoded as `application/x-www-form-urlencoded`: + +```astro title="src/components/Form.astro" + + +
+``` + You can opt out of router transitions on any individual form using the `data-astro-reload` attribute: ```astro title="src/components/Form.astro"