HX-Push needs a URL, not bool
This commit is contained in:
parent
2dd45cefe0
commit
c7cee2996b
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user