From 0873611b69284384ee441d6f236b6455e0d41e2b Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 1 Dec 2025 13:33:43 -0500 Subject: Fix task links in Recent Activity inheriting wrong hx-target Links inside the recent-activity div were inheriting hx-target=#activity-list from the parent, causing page content to be swapped into the list item instead of navigating. Explicitly set hx-target=body on list group items. --- Omni/Jr/Web.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Omni/Jr') diff --git a/Omni/Jr/Web.hs b/Omni/Jr/Web.hs index 2b7ba21..2e4ee66 100644 --- a/Omni/Jr/Web.hs +++ b/Omni/Jr/Web.hs @@ -932,7 +932,10 @@ renderListGroupItem :: (Monad m) => TaskCore.Task -> Lucid.HtmlT m () renderListGroupItem t = Lucid.a_ [ Lucid.class_ "list-group-item", - Lucid.href_ ("/tasks/" <> TaskCore.taskId t) + Lucid.href_ ("/tasks/" <> TaskCore.taskId t), + Lucid.makeAttribute "hx-boost" "true", + Lucid.makeAttribute "hx-target" "body", + Lucid.makeAttribute "hx-swap" "innerHTML" ] <| do Lucid.div_ [Lucid.class_ "list-group-item-content"] <| do -- cgit v1.2.3