diff --git a/internal/paging/page.go b/internal/paging/page.go index ee787dc63..8e8261396 100644 --- a/internal/paging/page.go +++ b/internal/paging/page.go @@ -295,9 +295,9 @@ func (p *Page) ToLinkURL(proto, host, path string, queryParams url.Values) *url. // page will be cursored by either // the min or max query parameter. if p.order().Ascending() { - cursor = p.Max.Name - } else { cursor = p.Min.Name + } else { + cursor = p.Max.Name } if cursor != "" {