HX-Push needs a URL, not bool
This commit is contained in:
parent
2dd45cefe0
commit
c7cee2996b
|
@ -63,8 +63,8 @@ module Handlers =
|
||||||
|> sprintf "{ %s }"
|
|> sprintf "{ %s }"
|
||||||
|
|
||||||
// Pushes a new url into the history stack
|
// Pushes a new url into the history stack
|
||||||
let withHxPush : bool -> HttpHandler =
|
let withHxPush : string -> HttpHandler =
|
||||||
toLowerBool >> setHttpHeader "HX-Push"
|
setHttpHeader "HX-Push"
|
||||||
|
|
||||||
/// Can be used to do a client-side redirect to a new location
|
/// Can be used to do a client-side redirect to a new location
|
||||||
let withHxRedirect : string -> HttpHandler =
|
let withHxRedirect : string -> HttpHandler =
|
||||||
|
|
Loading…
Reference in New Issue
Block a user