mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 15:25:26 +00:00
Explain how to detect boosted requests (#981)
This commit is contained in:
parent
0bc938de0e
commit
c869cf121c
@ -45,4 +45,5 @@ This form will issue an ajax `POST` to the given URL and replace the body's inne
|
|||||||
* `hx-boost` is inherited and can be placed on a parent element
|
* `hx-boost` is inherited and can be placed on a parent element
|
||||||
* Only links that are to the same domain and that are not local anchors will be boosted
|
* Only links that are to the same domain and that are not local anchors will be boosted
|
||||||
* All requests are done via AJAX, so keep that in mind when doing things like redirects
|
* All requests are done via AJAX, so keep that in mind when doing things like redirects
|
||||||
|
* To find out if the request results from a boosted anchor or form, look for [`HX-Boosted`](/reference/#request_headers) in the request header
|
||||||
* Selectively disable boost on child elements with `hx-boost="false"`
|
* Selectively disable boost on child elements with `hx-boost="false"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user