Fix infinite scroll query encoding

This commit is contained in:
sas.fajri
2026-05-07 13:07:42 +07:00
parent 11f0d0436e
commit 88191ac3c7
3 changed files with 6 additions and 6 deletions

View File

@@ -192,7 +192,7 @@
<div id="progress-load-more" class="px-4 pb-4">
{{if .HasMore}}
<div
hx-get='{{b "/progress/list"}}?search={{.Search}}&status={{.Status}}&packet={{.Packet}}&page={{.NextPage}}'
hx-get='{{b "/progress/list"}}?search={{urlquery .Search}}&status={{urlquery .Status}}&packet={{urlquery .Packet}}&page={{.NextPage}}'
hx-trigger="revealed"
hx-swap="outerHTML"
class="rounded-lg border border-slate-200 bg-slate-50 px-3 py-2 text-center text-xs font-medium text-slate-500">
@@ -286,7 +286,7 @@
<div id="progress-load-more" hx-swap-oob="outerHTML">
{{if .HasMore}}
<div
hx-get='{{b "/progress/list"}}?search={{.Search}}&status={{.Status}}&packet={{.Packet}}&page={{.NextPage}}'
hx-get='{{b "/progress/list"}}?search={{urlquery .Search}}&status={{urlquery .Status}}&packet={{urlquery .Packet}}&page={{.NextPage}}'
hx-trigger="revealed"
hx-swap="outerHTML"
class="rounded-lg border border-slate-200 bg-slate-50 px-3 py-2 text-center text-xs font-medium text-slate-500">