# Kirby 2.2 beta: Pagination broken with routing

**URL:** <https://forum.getkirby.com/t/kirby-2-2-beta-pagination-broken-with-routing/2321>\
**Category:** Questions\
**Tags:** v2\
**Created:** [October 26, 2015, 5:04pm UTC](https://forum.getkirby.com/t/kirby-2-2-beta-pagination-broken-with-routing/2321 "2015-10-26T17:04:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [October 26, 2015, 5:04pm UTC](https://forum.getkirby.com/t/kirby-2-2-beta-pagination-broken-with-routing/2321/1 "2015-10-26T17:04:15Z")

</div>

Two reports of this error:

> [@Pagination broken with routing?](https://forum.getkirby.com/t/pagination-broken-with-routing/2290/1):
>
> Everything works fine, except the pagination. “prevPageURL()” and “nextPageURL()” return urls that are not valid. e.g. for page 2 they return “/page:2” which leads to a “Forbidden” page, when the correct url would be “/blog/page:2”.

> [@Pagination broken with routing?](https://forum.getkirby.com/t/pagination-broken-with-routing/2290/5):
>
> Indeed, it looks like it doesn’t play nice with my local MAMP install (Apache/2.2.27 (Win32)).

and

> [@Blogprint - a blueprint for blogs with kirby](https://forum.getkirby.com/t/blogprint-a-blueprint-for-blogs-with-kirby/512/3):
>
> But I have a problem, if I e.g. look at a page Archive for tag “green”, if this tag is used at many posts, so that this page uses the pagination.If I click on one of the pagination links (e.g. “\>” or “\>\>”), then the next page will show a pagination of all posts (and not only the pagination of the posts with the tag “green”).
> 
> I have tested this with Apache/2.4.16 (Win32) PHP/5.6.12 on Win7 64-bit locally, installing your plugin with Kirby 2.1.1 directly in the path \xampp\_5.6.12\htdocs.
> 
> But this is the same, if I run Apache/2.4.9 (Win32) PHP/5.4.27.

I get the same error with **kirby-nightly-2.2.0 - 2015-10-23 15:00:47** on XAMPP with windows.

=\>  
My description of the error:

The pagination in Kirby fetches the URL of the content file and not the URL of an active route!

@all:  
Please build an issue at Github! Thanks.

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [October 26, 2015, 7:44pm UTC](https://forum.getkirby.com/t/kirby-2-2-beta-pagination-broken-with-routing/2321/2 "2015-10-26T19:44:20Z")

</div>

The first issue is not related to routing (it is related to the local dev environment).  
The second issue has already been posted by you in the other topic and is probably related to Blogprint. Please don’t spam the forum.

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [October 26, 2015, 7:44pm UTC](https://forum.getkirby.com/t/kirby-2-2-beta-pagination-broken-with-routing/2321/3 "2015-10-26T19:44:25Z")

</div>



---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:20pm UTC](https://forum.getkirby.com/t/kirby-2-2-beta-pagination-broken-with-routing/2321/4 "2025-02-06T17:20:51Z")

</div>


