You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: www/content/headers/hx-replace-url.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,16 @@ description = """\
7
7
8
8
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).
9
9
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).
11
11
12
12
If present, this header overrides any behavior defined with attributes.
13
13
14
14
The possible values for this header are:
15
15
16
16
1. A URL to replace the current URL in the location bar.
17
17
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.
0 commit comments