# Jekyll Paginate v2 Not Working In Blog Page

**URL:** <https://talk.jekyllrb.com/t/jekyll-paginate-v2-not-working-in-blog-page/2782>\
**Category:** Help\
**Created:** [March 31, 2019, 12:42pm UTC](https://talk.jekyllrb.com/t/jekyll-paginate-v2-not-working-in-blog-page/2782 "2019-03-31T12:42:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubel](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rubel/32/230_2.png) [@rubel](https://talk.jekyllrb.com/u/rubel)\
**Post date:** [March 31, 2019, 12:42pm UTC](https://talk.jekyllrb.com/t/jekyll-paginate-v2-not-working-in-blog-page/2782/1 "2019-03-31T12:42:13Z")

</div>

in my pages/blog.html pages , i want to using paginate v2 plugin for pagination. But It Not Working Showing Error

```auto
Pagination Error: Detected invalid url "/blog" for "pages/blog.html"
                    Expected "/" or "/index.html"

```

in my pages/blog.html page

```auto
---
layout: page
pagination:
  enabled: true
permalink: '/blog'
---

```

Please Help Me. How Can I Using Pagination In my pages/blog.html page ?

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [April 2, 2019, 6:32pm UTC](https://talk.jekyllrb.com/t/jekyll-paginate-v2-not-working-in-blog-page/2782/2 "2019-04-02T18:32:40Z")

</div>

i don’t use pagination - but it used to be that the old version had to be on your index.html page, and that sort of seems like what the error is saying.

Can you use the pretty permalink style and have the url be `blog/` in which case the file would be index.html? I think it is complaining that the filename is not index.html. With pretty permalinks the urls all end with a / and the structure is such that `blog` ends up as a folder not a file - with an index.html file inside. The url will be `/blog/` but the server will serve the index.html file that is inside. Then the paginate thing I think will be happy cause the filename will be index.html not blog.html.

---

<div class="post-metadata">

**Author:** ![ashmaroli](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@ashmaroli](https://talk.jekyllrb.com/u/ashmaroli)\
**Post date:** [April 3, 2019, 9:36am UTC](https://talk.jekyllrb.com/t/jekyll-paginate-v2-not-working-in-blog-page/2782/3 "2019-04-03T09:36:09Z")

</div>

@rubel The issue you’re facing was due to an enhancement introduced in the plugin’s `v2.1.0`. That version has now been removed.  
Please uninstall that version from your system and run `bundle update` to use `v2.0.0` of the plugin.

---

<div class="post-metadata">

**Author:** ![rubel](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rubel/32/230_2.png) [@rubel](https://talk.jekyllrb.com/u/rubel)\
**Post date:** [April 5, 2019, 5:42am UTC](https://talk.jekyllrb.com/t/jekyll-paginate-v2-not-working-in-blog-page/2782/4 "2019-04-05T05:42:13Z")

</div>

it was very silly issue. i solved the problem by changing permalink to

```auto
"/pages/blog/"

```
