# Query Params clearing on page change

**URL:** <https://community.glideapps.com/t/query-params-clearing-on-page-change/72143>\
**Category:** Ask for Help\
**Created:** [March 28, 2024, 9:07pm UTC](https://community.glideapps.com/t/query-params-clearing-on-page-change/72143 "2024-03-28T21:07:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanmoy](https://avatars.discourse-cdn.com/v4/letter/t/d6d6ee/32.png) [@tanmoy](https://community.glideapps.com/u/tanmoy)\
**Post date:** [March 28, 2024, 9:07pm UTC](https://community.glideapps.com/t/query-params-clearing-on-page-change/72143/1 "2024-03-28T21:07:22Z")

</div>

In my app I have passing some data as query params in glide url and accessing it using get part of url feature, but on any navigation, the url is changing, and the data is getting removed.  
Is there any way to persist that data during the session?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [March 28, 2024, 10:04pm UTC](https://community.glideapps.com/t/query-params-clearing-on-page-change/72143/2 "2024-03-28T22:04:19Z")

</div>

I haven’t tried this method myself and I’m having trouble envisioning how it works, but I am intrigued by it. Maybe something to try.

> [@Two links to one app](https://community.glideapps.com/t/two-links-to-one-app/71373/12):
>
> There is one way to do it. Inside of a form container set the default value of a text entry component with get part of url to user specific column. Then take text entry component out of the form container and finally delete form container. Just make sure source of form container is same as screen. Its a nice trick wink

---

<div class="post-metadata">

**Author:** ![tanmoy](https://avatars.discourse-cdn.com/v4/letter/t/d6d6ee/32.png) [@tanmoy](https://community.glideapps.com/u/tanmoy)\
**Post date:** [March 29, 2024, 9:33am UTC](https://community.glideapps.com/t/query-params-clearing-on-page-change/72143/3 "2024-03-29T09:33:18Z")

</div>

If somewhere else this is accessed with some other data, then there comes ambiguity 🥲

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [March 29, 2024, 9:44am UTC](https://community.glideapps.com/t/query-params-clearing-on-page-change/72143/4 "2024-03-29T09:44:09Z")

</div>

It’s kind of like the trick where you can make an entry component say “required” only this trick works with setting a default value… it fires the first time you navigate to that screen

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [March 29, 2024, 11:27am UTC](https://community.glideapps.com/t/query-params-clearing-on-page-change/72143/5 "2024-03-29T11:27:54Z")

</div>

That’s pretty handy. Definitely something I need to play around with.

---

<div class="post-metadata">

**Author:** ![Himaladin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/himaladin/32/71023_2.png) [@Himaladin](https://community.glideapps.com/u/Himaladin)\
**Post date:** [March 29, 2024, 12:08pm UTC](https://community.glideapps.com/t/query-params-clearing-on-page-change/72143/6 "2024-03-29T12:08:02Z")

</div>

Is this a bug or a miracle? Or whatever, what terminology do you call it. 🤣

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [March 29, 2024, 12:30pm UTC](https://community.glideapps.com/t/query-params-clearing-on-page-change/72143/7 "2024-03-29T12:30:06Z")

</div>

![IMG_4870](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/1/41231a58bf4b2ca6ff331b4e00997cffbb3f6fbd.jpeg)
