I have set up CMS Load with pagination a couple of times already.
Currently, though, I have a project where the pagination pages are not being calculated correctly: there should be 3 pages, but it shows 5.
It is like two pages are being duplicated and appended. I double-checked everything and everything is configured exactly like in another project where everything is working just fine.
Has this been an issue for somebody before, maybe, and there is an easy fix, hopefully?
<!-- [Attributes by Finsweet] CMS Load -->
<script async src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmsload@1/cmsload.js"></script>
I believe this is added by iubenda which may be initiating the library twice, as I can replicate by preventing the load and manually triggering it twice (see video below)
In hindsight, it’s clear again which part of the puzzle was messing it up. But scripting and script-execution sequences are slightly out of my comfort-zone, so I didn’t see it.
Thank you, huge amounts!
For future reference or others that might run into this bit of weird behavior: if you also use Iubenda for cookie blocking you can add:
data-cmp-ab="2"
to the script tag. This tells Iubenda that this script is harmless and doesn’t block it (and hence doesn’t reload it again, after accepting the cookies).