diff --git a/.changeset/rotten-months-report.md b/.changeset/rotten-months-report.md new file mode 100644 index 000000000000..c55fc6171bb0 --- /dev/null +++ b/.changeset/rotten-months-report.md @@ -0,0 +1,27 @@ +--- +'astro': patch +--- + +Improves user experience when render an Action result from a form POST request: + +- Removes "Confirm post resubmission?" dialog when refreshing a result. +- Removes the `?_astroAction=NAME` flag when a result is rendered. + +Also improves the DX of directing to a new route on success. Actions will now redirect to the route specified in your `action` string on success, and redirect back to the previous page on error. This follows the routing convention of established backend frameworks like Laravel. + +For example, say you want to redirect to a `/success` route when `actions.signup` succeeds. You can add `/success` to your `action` string like so: + +```astro +