mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-27 13:01:03 +00:00
865 B
865 B
+++ title = "HX-Push-Url Response Header" +++
The HX-Push-Url
header allows you to push a URL into the browser location history.
This creates a new history entry, allowing navigation with the browser’s back and forward buttons.
This is similar to the hx-push-url
attribute.
If present, this header overrides any behavior defined with attributes.
The possible values for this header are:
- A URL to be pushed into the location bar.
This may be relative or absolute, as per
history.pushState()
. false
, which prevents the browser’s history from being updated.
Notes
Response headers are not processed on 3xx response codes. see Response Headers