Instead of passing "false" to HtmxResponse.Builder#pushUrl or HtmxResponse.Builder#replaceUrl, a new convenience method preventHistoryUpdate() has been added. Since htmx only considers one of the headers HX-Push-Url or HX-Replace-Url, and in exactly that order, it was obvious to offer such a method.
Instead of passing
"false"
toHtmxResponse.Builder#pushUrl
orHtmxResponse.Builder#replaceUrl
, a new convenience methodpreventHistoryUpdate()
has been added. Since htmx only considers one of the headersHX-Push-Url
orHX-Replace-Url
, and in exactly that order, it was obvious to offer such a method.