fuxt-backend
fuxt-backend copied to clipboard
NextPage returns random page
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:
you can see from the page structure that's incorrect
NextPost is working as expected:
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.
See this function for how it worked for Pages: https://github.com/funkhaus/fuxt-backend/issues/39
Fixed with https://github.com/funkhaus/fuxt-backend/commit/7e6c95b061efbc894d4781793579c70c63a232be