<p>You should be able to use the setBasePath() function of the paginate component to change the base URL</p>
<p>I.e</p>
<pre><code>{% paginate query as pageInfo, pageEntries %}
{% do pageInfo.setBasePath('new_url') %}
</code></pre>

CC BY-SA 4.0
2021-12-19T22:51:01.353Z
2021-12-20T19:32:26.150Z
2021-12-20T19:32:26.150Z
stevecomrie
<p>I have a blog with a different header on the home page, than the other pages. I would like to show the latest blog posts on the homepage and paginate after 10 posts to the next paginated page, using the standard header design (which is different than on the homepage).</p>
<p>Is there a way I can accomplish this in Craft using the paginate function, or das paginated content always has the use the same template design?</p>
<p>Thanks for your help. markus</p>

<pagination>
Pagination to a different template
# Pagination to a different template

(Asked by: username_0 on 2021-12-19)

I have a blog with a different header on the home page, than the other pages. I would like to show the latest blog posts on the homepage and paginate after 10 posts to the next paginated page, using the standard header design (which is different than on the homepage).

Is there a way I can accomplish this in Craft using the paginate function, or das paginated content always has the use the same template design?

Thanks for your help. markus

**Tags:** pagination


---

## 1 answers

### Answer by username_1 on 2021-12-19. Score: 1

You should be able to use the setBasePath() function of the paginate component to change the base URL
I.e
{% paginate query as pageInfo, pageEntries %}
{% do pageInfo.setBasePath('new_url') %}


---

