This example shows how to use hx-replace-url
to replace the current url of the browser location (doc)
<ul><lihx-get="/htmx/get" hx-replace-url="true">GET</li><lihx-post="/htmx/post" hx-replace-url="true">POST</li><lihx-put="/htmx/put" hx-replace-url="true">PUT</li><lihx-patch="/htmx/patch" hx-replace-url="true">PATCH</li><lihx-delete="/htmx/delete" hx-replace-url="true">DELETE</li></ul>