Hello there,
After the upgrade to Kirby 2.5.0, the pagination no longer works beyond the start page. As soon as I’m on page 2 of my blog, the link to the third page looks like this:
page:2/page:3
The link to the first page becomes this:
page:2
I’m not sure what broke the pagination. Here’s the crucial part from my template:
<?php if($articles->pagination()->hasPages()): ?>
<div class="pagination">
<?php if($articles->pagination()->hasNextPage()): ?>
<a class="prev" href="<?php echo $articles->pagination()->nextPageURL() ?>">« Previous</a>
<?php endif ?>
<?php if($articles->pagination()->hasPrevPage()): ?>
<a class="next" href="<?php echo $articles->pagination()->prevPageURL() ?>">Next »</a>
</div>
<?php endif ?>
<?php endif ?>
Any help is much appreciated!