# How to set paginate\_path for jekyll-paginate-v2 autopages?

**URL:** https://talk.jekyllrb.com/t/how-to-set-paginate-path-for-jekyll-paginate-v2-autopages/9886
**Category:** Help
**Created:** [April 3, 2025, 12:07am UTC](https://talk.jekyllrb.com/t/how-to-set-paginate-path-for-jekyll-paginate-v2-autopages/9886 "2025-04-03T00:07:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bitzoid](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/bitzoid/32/6296_2.png) [@bitzoid](https://talk.jekyllrb.com/u/bitzoid)
#### Post date: [April 3, 2025, 12:07am UTC](https://talk.jekyllrb.com/t/how-to-set-paginate-path-for-jekyll-paginate-v2-autopages/9886/1 "2025-04-03T00:07:33Z")

</div>

I’m using jekyll-paginate-v2’s autopages to generate tags and other things. The first page is written to “/tag/sometag/” as I want it to (`/tag/:tag/`), but the remaining pages end up in e.g. “/tag/sometag/page2/” (`/tag/:tag/page:num/`) but I want them in “/tag/sometag/2/” (`/tag/:tag/:num/`) as I have them for other collections.

I have tried setting `paginate_path` in various sections inside \_config.yml but the plugin does not seem to care. The [documentation](https://github.com/sverrirs/jekyll-paginate-v2/blob/master/README-GENERATOR.md) only mentions `paginate_path` in backwards compatibility mode with jekyll-paginate, which I don’t think I want.

_Is changing the path for autopages even possible? If so how?_

* * *

Here’s the relevant part of my config. I have not included my attempts at setting `paginate_path` because it seems to be ignored everywhere.

```auto
pagination:
  enabled: true
  per_page: 2
  title: ':title'
  sort_field: 'date'
  sort_reverse: true
  trail:
    before: 3
    after: 3

collections:
  somecollection:
    output: true
    sort_by: date
    permalink: somecollection-:title

autopages:
  enabled: true
  collections:
    enabled: false
  tags:
    title: '#:tag'
    permalink: '/tag/:tag/'
    silent: false
    slugify:
      mode: 'pretty'
      case: true

```

---

<div class="post-metadata">

### Author: ![fabiomux](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/fabiomux/32/2656_2.png) [@fabiomux](https://talk.jekyllrb.com/u/fabiomux)
#### Post date: [April 7, 2025, 2:48pm UTC](https://talk.jekyllrb.com/t/how-to-set-paginate-path-for-jekyll-paginate-v2-autopages/9886/2 "2025-04-07T14:48:57Z")

</div>

Have you tried modifying `permalink` under the `pagination` key?

```yaml
pagination:
  enabled: true
  #debug: true
  per_page: 5
  permalink: '/page/:num/'

```

---

<div class="post-metadata">

### Author: ![bitzoid](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/bitzoid/32/6296_2.png) [@bitzoid](https://talk.jekyllrb.com/u/bitzoid)
#### Post date: [April 7, 2025, 6:35pm UTC](https://talk.jekyllrb.com/t/how-to-set-paginate-path-for-jekyll-paginate-v2-autopages/9886/3 "2025-04-07T18:35:27Z")

</div>

Yes, I tried `permalink` in various places. In some `:num` isn’t properly replaced. In others `:tag` is not. I have looked around a bit in the plugin code and it seems to just not be supported. But I’m not fluent in ruby, so I might have overlooked something.

I currently solved this with .htaccess redirections. They look like this, in case someone finds the same issue:

```auto
RewriteRule tag/([^/]+)/([0-9]+)/?$ /tag/$1/page$2/index.html [L]

```
