Closed picarica closed 2 years ago
Hi @picarica, thank you for your report.
The number 1638530810077
is an cache-busting mechanism that IAS uses, but I have the feeling that it is causing the issue here. I'm thinking about removing this way of cache-busting, but could you try one thing to make sure it is really causing the issue?
let ias = new InfiniteAjaxScroll('#grid-game', {
item: '.GameTile.card.game',
next: '.MarkupPagerNavNext > a',
pagination: '.MarkupPagerNav',
spinner: '#spinner',
});
ias.on('load', function(event) {
event.nocache = true;
});
Hi @picarica, thank you for your report.
The number
1638530810077
is an cache-busting mechanism that IAS uses, but I have the feeling that it is causing the issue here. I'm thinking about removing this way of cache-busting, but could you try one thing to make sure it is really causing the issue?let ias = new InfiniteAjaxScroll('#grid-game', { item: '.GameTile.card.game', next: '.MarkupPagerNavNext > a', pagination: '.MarkupPagerNav', spinner: '#spinner', }); ias.on('load', function(event) { event.nocache = true; });
this solved it thanks !
Bug report
so i have site i am using pagination and if get request is present it will include that get request in pagination links too, so that it transfers over to new page
Code and configuration snippets that reproduces the problem
<a href="/page2/?srch=test">Next</a>
so i dont think there is need to put in codesandbox this is the next href link when get request is present, my php code is as this'linkMarkup' => "<a href='{url}?srch={$input->get->text('srch')}'><span>{out}</span></a>"];
nothing too complicated but ajax scroll doesnt seem to work with it, by itself it works flawlessly i just click the link and i am on next page with new request also this is my initiation codealso this is the error log in console
Expected behavior
carry over the get request as it works without infinite ajax scroll
Environment
i am using processwire CMS on LAMP stack on centos 7 system located in europe