fuxt-backend icon indicating copy to clipboard operation
fuxt-backend copied to clipboard

NextPage returns random page

Open dChiamp opened this issue 2 years ago • 2 comments

NextPage gql query is consistently returning incorrect pages. This is unrelated to the recent looping update which works well, as its happening on older sites that weren't updates (like soda).

Here's a query example: pages-query

you can see from the page structure that's incorrect pages-next

NextPost is working as expected: posts-query posts-next

dChiamp avatar Nov 30 '22 18:11 dChiamp

If I understand the code that @rsm0128 wrote, this actually doesn't work for hierarchy posts anymore, which is wrong. For posts with hierarchy to them (like Pages) there would need to be much different logic.

drewbaker avatar Nov 30 '22 22:11 drewbaker

See this function for how it worked for Pages: https://github.com/funkhaus/fuxt-backend/issues/39

drewbaker avatar Nov 30 '22 22:11 drewbaker

Fixed with https://github.com/funkhaus/fuxt-backend/commit/7e6c95b061efbc894d4781793579c70c63a232be

drewbaker avatar Feb 23 '23 22:02 drewbaker