v0.8.0
This update changes the behavior of the special _self
keyword when using status code modifiers on x-target
:
<form x-target="my_form" x-target.3xx="_self">
Previously this code would trigger a full page reload when the form request responded with a redirect. Now, it will only trigger a full page reload if the redirect's location is a URL not matching the current page. In the case that this form does redirect back to the current page, like to show validation errors, my_form
will be used as the target instead.
This new behavior is documented here: https://alpine-ajax.js.org/reference/#_self-special-exception
In cases where you want the page to reload no matter what (the old _self
behvaior), you can use _top
instead.