Unless the pagination links are removed from the URI passed to Document::addPaginationLinks() the output will be duplicated:
"links": {
"first": "https:\/\/api.acme.net\/users?page%5Blimit%5D=5?page%5Blimit%5D=5",
"next": "https:\/\/api.acme.net/users?page%5Blimit%5D=5?page%5Blimit%5D=5&page%5Boffset%5D=5"
}
It should be clearly documented that the passed URI must be stripped of query parameters or addPaginationLinks should automatically strip them.
Unless the pagination links are removed from the URI passed to
Document::addPaginationLinks()the output will be duplicated:It should be clearly documented that the passed URI must be stripped of query parameters or
addPaginationLinksshould automatically strip them.