Edit pagination page url

I’m new to Kirby and so far loving it. I’ve been following the docs to set up a blog and so far it’s been a breeze. However I’m a php noob and I was wondering how I could edit the pagination url.

I want to change “http://kirby/blog/page:2” to “http://kirby/blog/page/2

Is there a simple way to achieve this?

Try setting an empty string:

$articles = $page->children()->paginate(20, array( 'variable' => '' )); 

Not tested, though :innocent:

Unfortunately this is not going to work. The only alternative is to use ?page= instead of the param.

Too bad, was just a guess in the wild …

Sad to hear, but thanks for letting me know! I’m curious though, Is this a limitation of Kirby or of something greater?

This is just how params in Kirby work.

It’s a routing issue in Kirby. When the page should be a part of the URL path, the router would need to find out about it and that’s quite tricky to solve system-wide.