Closed bobrocke closed 10 years ago
Your blog is not paging? what version of Grav are you running? Just tested on the demo and it's fine: http://demo.getgrav.org/blog-skeleton/
When I click on the "next page" arrow on the bottom of the demo sites home (blog) page paginator, I hit the link http://demo.getgrav.org/blog-skeleton/blog
. Don't you?
And shouldn't that be http://demo.getgrav.org/blog-skeleton/blog/page:2
?
Actually your right! I was hitting the numeric button. I'll take a look. Thanks
Was a bug in the pagination plugin. The template file was just out of date with a method name change.
Probably easier just to change the template file with this one:
https://github.com/getgrav/grav-plugin-pagination/blob/develop/templates/pagination.html.twig
will replace your user/plugins/pagination/templates/pagination.html.twig
file
That was fast! You guys sure are right on top of it. Another "selling" point for Grav.
Oh, yes, that fixed it. :)
We would of fixed it quicker, but our GitHub notifications in HipChat stopped working for a bit, so we didn't notice this issue reported for nearly 20 minutes!
Cross reference:
I notice that the Grav blog at http://getgrav.org/blog
has the same error. The "next page" pagination arrow links to: http://getgrav.org/blog
. The page number links and the "last page" arrow are fine.
Fixed both getgrav.org/blog
and demo.getgrav.org/blog-skeleton/blog
.
Cheers!
Both on my test site and the Grav blog site, it seems that
pagination.next_url
is returning the wrong URL. In both cases the lines:in
pagination.html.twig
will create a link back to/blog
, instead of/blog/page:2
, under the next page arrow.