| 1 | --- |
| 2 | title: "HX-Push-Url" |
| 3 | description: "Push a URL into the browser history stack" |
| 4 | --- |
| 5 | |
| 6 | The `HX-Push-Url` response header pushes a new URL into the browser location history. This creates a new history entry, allowing navigation with the browser's back and forward buttons. |
| 7 | |
| 8 | If present, this header overrides any behavior defined with attributes. |
| 9 | |
| 10 | ## Possible Values |
| 11 | |
| 12 | - A URL to be pushed into the location bar. May be relative or absolute, as per [`history.pushState()`](https://developer.mozilla.org/en-US/docs/Web/API/History/pushState). |
| 13 | - `false` — prevents the browser's history from being updated. |
| 14 | |
| 15 | ## Example |
| 16 | |
| 17 | ```http |
| 18 | HX-Push-Url: /dashboard |
| 19 | ``` |
| 20 | |
| 21 | ## Notes |
| 22 | |
| 23 | - Response headers are not processed on 3xx response codes. |
| 24 | |
| 25 | See also: [`hx-push-url`](/reference/attributes/hx-push-url), [`HX-Replace-Url`](/reference/headers/HX-Replace-Url) |