Skip to content

Commit 3a7f76b

Browse files
committed
push headers support true
1 parent 1c9e9b6 commit 3a7f76b

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

www/content/headers/hx-push-url.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ description = """\
66

77
The `HX-Push-Url` header allows you to push a URL into the browser [location history](https://developer.mozilla.org/en-US/docs/Web/API/History_API).
88
This creates a new history entry, allowing navigation with the browser’s back and forward buttons.
9-
This is similar to the [`hx-push-url` attribute](@/attributes/hx-push-url.md).
9+
It works the same as [`hx-push-url` attribute](@/attributes/hx-push-url.md).
1010

1111
If present, this header overrides any behavior defined with attributes.
1212

1313
The possible values for this header are:
1414

1515
1. A URL to be pushed into the location bar.
1616
This may be relative or absolute, as per [`history.pushState()`](https://developer.mozilla.org/en-US/docs/Web/API/History/pushState).
17-
2. `false`, which prevents the browser’s history from being updated.
17+
2. `true`, which pushes the fetched URL into history and location bar.
18+
3. `false`, which prevents the browser’s history from being updated.
1819

1920
## Notes
2021

www/content/headers/hx-replace-url.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ description = """\
77

88
The `HX-Replace-Url` header allows you to replace the current URL in the browser [location history](https://developer.mozilla.org/en-US/docs/Web/API/History_API).
99
This does not create a new history entry; in effect, it removes the previous current URL from the browser’s history.
10-
This is similar to the [`hx-replace-url` attribute](@/attributes/hx-replace-url.md).
10+
It works the same as [`hx-replace-url` attribute](@/attributes/hx-replace-url.md).
1111

1212
If present, this header overrides any behavior defined with attributes.
1313

1414
The possible values for this header are:
1515

1616
1. A URL to replace the current URL in the location bar.
1717
This may be relative or absolute, as per [`history.replaceState()`](https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState), but must have the same origin as the current URL.
18-
2. `false`, which prevents the browser’s current URL from being updated.
18+
2. `true`, which replaces the fetched URL into history and location bar.
19+
3. `false`, which prevents the browser’s current URL from being updated.
1920

2021
## Notes
2122

0 commit comments

Comments
 (0)