From c7cee2996bdbc25cb6d16aa8833c941dfb910596 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Sat, 9 Oct 2021 22:52:00 -0400 Subject: [PATCH] HX-Push needs a URL, not bool --- src/Htmx/Htmx.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Htmx/Htmx.fs b/src/Htmx/Htmx.fs index 2504b37..3258d38 100644 --- a/src/Htmx/Htmx.fs +++ b/src/Htmx/Htmx.fs @@ -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 =