I have a problem with the Prismic REST API
Let me explain.
I have this query with locales (I will write the query on multiple lines to be easily readable):
https://example-repo-name.cdn.prismic.io/api/v2/documents/search? ref=YOWwnRUAACQAsdTT& q=%5B%5Bat(document.type,%22category%22)%5D%5D& orderings=%5Bmy.category.priority%20desc%5D& page=1& pageSize=100& lang=*
After querying the Prismic API, I get this result (please see next_page attribute in the pic):
I will also paste the next_page URL for easy comparing:
https://example-repo-name.cdn.prismic.io/api/v2/documents/search? ref=YOWwnRUAACQAsdTT& q=%5B%5Bat%28document.type%2C%22category%22%29%5D%5D& orderings=%5Bmy.category.priority+desc%5D& page=2& pageSize=100& languageCode=*
It seems like the URL for next_page is changes from it's initial form (in the first query)
languageCode=*. This little change results in changing the query results. In this particular case, the second page should contain 26 results, but the results list will be empty!