Blog Pagination Showing 0

The first page of our blog is linking to blog/page/0 which is causing some broken links. I think it’s because of how the pagination is set up in our code. I’m pasting how it appears on page 1 of the blog and how it appears in the module.

I’d like to fix this, any help is appreciated!

Hey @pmatty ,

You may need to wrap that {{ blog_page_link(last_page_num) }} in a conditional statement.

{% if last_page_num %}
<a class="prev-link" href="{{ blog_page_link(last_page_num) }}">
... rest of the code ....
</a>
{% endif %}

Hope this helps!

Heyyy that totally did it! Thanks so much for your help!