This commit addresses two issues with pagination and search: 1. **Pagination URL Update**: Added `hx-push-url` to pagination buttons in the customer, order, and invoice list templates. This ensures the browser URL and history are updated when navigating pages via HTMX. The query parameters for `status` and `search` are now conditionally included, preventing empty parameters (e.g., `&status=`) in the URL. 2. **Search URL Reset**: Updated the `CustomerList` handler to send the `HX-Push-Url` header when performing a search via HTMX. This ensures that when a search is executed (or cleared), the URL correctly reflects the new state (reseting the page to 1), fixing a mismatch where the URL could show page 4 while the content was reset to page 1. |
||
|---|---|---|
| .. | ||
| customers | ||
| invoices | ||
| ledger | ||
| orders | ||
| dashboard.html | ||
| layout.html | ||
| login.html | ||