Fix history push URL when clicking tags
This commit is contained in:
parent
84cc3a1c68
commit
72fda72de5
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,8 @@ block view
|
||||||
newURL.searchParams.set("filter_field", "tag")
|
newURL.searchParams.set("filter_field", "tag")
|
||||||
newURL.searchParams.delete("filter_fuzzy")
|
newURL.searchParams.delete("filter_fuzzy")
|
||||||
newURL.searchParams.set("arrange", filter_field ? "album" : "label")
|
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"
|
content.style.background = "none"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue