Fix history push URL when clicking tags

This commit is contained in:
Cadence Ember 2025-04-10 10:04:04 +12:00
parent 84cc3a1c68
commit 72fda72de5

View file

@ -32,7 +32,8 @@ block view
newURL.searchParams.set("filter_field", "tag")
newURL.searchParams.delete("filter_fuzzy")
newURL.searchParams.set("arrange", filter_field ? "album" : "label")
htmx.ajax("GET", newURL.search, {context: content})
content.setAttribute("hx-push-url", newURL) // workaround for https://github.com/bigskysoftware/htmx/issues/2744
htmx.ajax("GET", newURL.search, {context: content, source: content})
}
})
content.style.background = "none"