Site Gallery: Filter parameters and pagination #1

Closed
opened 2022-09-10 03:25:13 +00:00 by noah · 1 comment

The pager buttons on the site gallery don't take all the query parameters for selected filters into account when loading another page, and there's a LOT of those params to worry about now.

Stuffing a bunch of template tags like href="{{.Request.URL.Path}}?view={{.ViewStyle}}&page={{.Pager.Previous}}" in there gets tedious fast too.

Create a template function which can just take "whatever the query parameters currently are" and add the page number do it (or update the existing page param if one already existed).

The pager buttons on the site gallery don't take all the query parameters for selected filters into account when loading another page, and there's a LOT of those params to worry about now. Stuffing a bunch of template tags like `href="{{.Request.URL.Path}}?view={{.ViewStyle}}&page={{.Pager.Previous}}"` in there gets tedious fast too. Create a template function which can just take "whatever the query parameters currently are" and add the page number do it (or update the existing page param if one already existed).
noah added the
bug
label 2022-09-10 03:25:13 +00:00
Poster
Owner

Fixed in 8085e092bc

Fixed in 8085e092bc3e516a4f9c1936ba2a1358d632f47a
noah closed this issue 2022-09-10 21:42:18 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: nonshy/website#1
There is no content yet.