This example demonstrates the usage of HX-Replace-Url
response header to replace the current url at the browser history (doc).
We are using the nice utilities provided by the excellent Htmx package.
htmx.MapGet("/",(HttpRequestrequest,HttpResponseresponse)=>{response.Htmx(x =>{x.ReplaceUrl("/get");});returnResults.Content($"GET => {DateTime.UtcNow}");});