HX-Push needs a URL, not bool

This commit is contained in:
Daniel J. Summers 2021-10-09 22:52:00 -04:00
parent 2dd45cefe0
commit c7cee2996b

View File

@ -63,8 +63,8 @@ module Handlers =
|> sprintf "{ %s }"
// Pushes a new url into the history stack
let withHxPush : bool -> HttpHandler =
toLowerBool >> setHttpHeader "HX-Push"
let withHxPush : string -> HttpHandler =
setHttpHeader "HX-Push"
/// Can be used to do a client-side redirect to a new location
let withHxRedirect : string -> HttpHandler =