The HX-Replace-Url
header allows you to replace the current URL in the browser location history.
This does not create a new history entry; in effect, it removes the previous current URL from the browser’s history.
This is similar to the hx-replace-url
attribute.
If present, this header overrides any behavior defined with attributes.
The possible values for this header are:
history.replaceState()
, but must have the same origin as the current URL.false
, which prevents the browser’s current URL from being updated.Response headers are not processed on 3xx response codes. see Response Headers