# Query Variable for Pagination

**URL:** https://community.weweb.io/t/query-variable-for-pagination/2371
**Category:** How do I?
**Created:** [April 20, 2023, 12:53am UTC](https://community.weweb.io/t/query-variable-for-pagination/2371 "2023-04-20T00:53:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![BuildLikePeter](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/buildlikepeter/32/2674_2.png) [@BuildLikePeter](https://community.weweb.io/u/BuildLikePeter)
#### Post date: [April 20, 2023, 12:53am UTC](https://community.weweb.io/t/query-variable-for-pagination/2371/1 "2023-04-20T00:53:04Z")

</div>

Using the built in WeWeb paginator, is there any way to update the url with a query parameter as pages are navigated?

---

<div class="post-metadata">

### Author: ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)
#### Post date: [April 20, 2023, 9:09am UTC](https://community.weweb.io/t/query-variable-for-pagination/2371/2 "2023-04-20T09:09:24Z")

</div>

I’ll check with the team and come back to you.

Just to be sure to 100% get what you mean, do you want to have a query variable updated on page change?

---

<div class="post-metadata">

### Author: ![BuildLikePeter](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/buildlikepeter/32/2674_2.png) [@BuildLikePeter](https://community.weweb.io/u/BuildLikePeter)
#### Post date: [April 20, 2023, 7:07pm UTC](https://community.weweb.io/t/query-variable-for-pagination/2371/3 "2023-04-20T19:07:13Z")

</div>

Yes. Something like the following:

[https://www.indiehackers.com/?page=2](https://www.indiehackers.com/?page=2)

When the page is incremented, the variable gets updated. Then if the url is visited directly, it navigates directly to that page.

---

<div class="post-metadata">

### Author: ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)
#### Post date: [April 21, 2023, 9:39am UTC](https://community.weweb.io/t/query-variable-for-pagination/2371/4 "2023-04-21T09:39:53Z")

</div>

This technically isn’t a new page, but rather a variable that the page uses to change its behavior. So if I were you, I would get back the value from the query variable on page load if any, and filter the data accordingly
