History changes and URL Queries / Fetching

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!

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 :thinking:

1 Like