# History changes and URL Queries / Fetching

**URL:** https://community.weweb.io/t/history-changes-and-url-queries-fetching/4788
**Category:** How do I?
**Created:** [October 7, 2023, 10:37pm UTC](https://community.weweb.io/t/history-changes-and-url-queries-fetching/4788 "2023-10-07T22:37:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![SilasCG](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@SilasCG](https://community.weweb.io/u/SilasCG)
#### Post date: [October 7, 2023, 10:37pm UTC](https://community.weweb.io/t/history-changes-and-url-queries-fetching/4788/1 "2023-10-07T22:37:55Z")

</div>

Hello,

I’m seeking assistance with URL queries. I’d like to push an URL query to the browser history, allowing users to return to the state before the query was modified. While I’ve attempted to achieve this with JavaScript by pushing the current URL to the history, I ended up with two entries. Consequently, users need to click twice to revert to the original state. How might I address this issue?

Additionally, I’m curious about how to trigger a fetch operation when the browser history changes, especially since my collection is configured for manual fetching and remains on the same page.

Any guidance would be appreciated. Thank you!

---

<div class="post-metadata">

### Author: ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)
#### Post date: [October 9, 2023, 12:30pm UTC](https://community.weweb.io/t/history-changes-and-url-queries-fetching/4788/2 "2023-10-09T12:30:49Z")

</div>

Could you try to use the change page action instead of javascript ? You can try to change to the same page but with your queries added.

I’m not sure but it could trigger the On Page Load again so you may be able to fetch your collection when the queries changes 🤔

---

<div class="post-metadata">

### Author: ![eric](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@eric](https://community.weweb.io/u/eric)
#### Post date: [December 10, 2024, 5:32pm UTC](https://community.weweb.io/t/history-changes-and-url-queries-fetching/4788/3 "2024-12-10T17:32:22Z")

</div>

hi @Alexis  
My current work: when do an action, the Query of Current PAGE will be updated  
my expected action: update many query of page  
now, wwLib.wwGoto and navigate workflow with query is NOT work in my case  
How can I update it?

---

<div class="post-metadata">

### Author: ![sproutsdev](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@sproutsdev](https://community.weweb.io/u/sproutsdev)
#### Post date: [December 11, 2024, 12:05am UTC](https://community.weweb.io/t/history-changes-and-url-queries-fetching/4788/4 "2024-12-11T00:05:16Z")

</div>

Hi, any feedback on this ??

---

<div class="post-metadata">

### Author: ![eric](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@eric](https://community.weweb.io/u/eric)
#### Post date: [December 15, 2024, 4:07pm UTC](https://community.weweb.io/t/history-changes-and-url-queries-fetching/4788/5 "2024-12-15T16:07:02Z")

</div>

Hi weweb team, any update on this?
