Skip to content

fix 'next' link href when OPTIMIZE_PAGINATION_FOR_SPEED is true#1567

Closed
eukaryote wants to merge 1 commit intopyeve:masterfrom
eukaryote:fix-next-link-with-optimize-pagination-for-speed
Closed

fix 'next' link href when OPTIMIZE_PAGINATION_FOR_SPEED is true#1567
eukaryote wants to merge 1 commit intopyeve:masterfrom
eukaryote:fix-next-link-with-optimize-pagination-for-speed

Conversation

@eukaryote
Copy link
Copy Markdown
Contributor

Adds a test and a fix for the next link incorrectly including a document id in the href when paginating through collections when OPTIMIZE_PAGINATION_FOR_SPEED is true; the next link was being generated in the form <resource>/<id>?page=2 instead of the correct <resource>?page=2.

AI disclosure: the fix and the test were created by Claude. I don't have mongo available or all the necessary python versions for testing, so I'm making this a draft PR so that I can verify all the tests/checks pass before marking it as ready to review.

@eukaryote eukaryote force-pushed the fix-next-link-with-optimize-pagination-for-speed branch 2 times, most recently from b6d1adc to eea66b8 Compare February 10, 2026 20:53
 - add a test and a fix for the 'next' link incorrectly including
   a document id in the href when paginating through collections
   when OPTIMIZE_PAGINATION_FOR_SPEED is true; the next link was
   being generated in the form  "<resource>/<id>?page=2"
   instead of the correct "<resource>?page=2".
@eukaryote eukaryote force-pushed the fix-next-link-with-optimize-pagination-for-speed branch from eea66b8 to a940587 Compare February 10, 2026 20:57
@nicolaiarocci
Copy link
Copy Markdown
Member

Hey thanks, it looks good to me. I appreciate the AI disclosure, and the context around it.

@nicolaiarocci nicolaiarocci marked this pull request as ready for review February 11, 2026 07:44
nicolaiarocci added a commit that referenced this pull request Feb 11, 2026
@nicolaiarocci
Copy link
Copy Markdown
Member

rebased and merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants