Hi, we have a web page that displays a view with pagination ("Pagination enabled with manual transition and page reload"). Here's the pagination template code:
When clicking on the pagination, instead of seeing another web page with the paginated set of results...
Instead, I got:
...one gets an XML sitemap! (Click on any pagination link to reproduce.) The URLs produced by the pagination are taking this form:
hidden link
The XML sitemap is produced by the Yoast SEO plugin. I deactivated the plugin, cleared the cache and refreshed the web page, but the pagination URLs pointing to /page-sitemap.xml didn't change (although now the pagination link produces a 404 page instead of the XML sitemap).
I'm guessing that the original issue was some kind of bug between Views and Yoast SEO (thought I still can't think of any reason why the pagination links would start pointing to page-sitemap.xml).
In any case, just to re-cap, I deactivated Yoast SEO, cleared the cache, re-activated it, and then once the browser cache's were cleared the issue was gone and the pagination links working as expected.
Mysterious, but we're all good! Thanks for taking a look!