Pagination broken since Kirby 2.5.0

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:


The link to the first page becomes this:


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() ?>">&laquo; Previous</a>
	  <?php endif ?>

	  <?php if($articles->pagination()->hasPrevPage()): ?>
	  <a class="next" href="<?php echo $articles->pagination()->prevPageURL() ?>">Next &raquo;</a>
	  <?php endif ?>

<?php endif ?>

Any help is much appreciated!

Okay, turns out this issue is the reason for this behaviour. This workaround works until the next update.

I’m really sorry about it. We just released 2.5.1 to fix this.