From 28fd7b468dd1a8a85fec85e3de66606a6049a2c0 Mon Sep 17 00:00:00 2001 From: Florian Briand Date: Mon, 19 Aug 2024 19:34:34 +0200 Subject: [PATCH] feat: Add hx-push-url attribute to nav menu item --- crates/app/templates/layout/nav/nav-menu-items.html | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/app/templates/layout/nav/nav-menu-items.html b/crates/app/templates/layout/nav/nav-menu-items.html index 9320312..f9de594 100644 --- a/crates/app/templates/layout/nav/nav-menu-items.html +++ b/crates/app/templates/layout/nav/nav-menu-items.html @@ -5,6 +5,7 @@ hx-trigger="click" hx-target="#main-container" hx-swap="innerHTML" + hx-push-url="true" class="{{ Self::get_classes(self, item.current) }}" aria-current="{% if item.current %}page{% endif %}" >