# Can we save some own query params when using trackUrlState?

**URL:** <https://discuss.elastic.co/t/can-we-save-some-own-query-params-when-using-trackurlstate/308883>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [July 5, 2022, 9:29am UTC](https://discuss.elastic.co/t/can-we-save-some-own-query-params-when-using-trackurlstate/308883 "2022-07-05T09:29:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pudge\_Zhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pudge_zhang/32/107915_2.png) [@Pudge\_Zhang](https://discuss.elastic.co/u/Pudge_Zhang)\
**Post date:** [July 5, 2022, 9:29am UTC](https://discuss.elastic.co/t/can-we-save-some-own-query-params-when-using-trackurlstate/308883/1 "2022-07-05T09:29:17Z")

</div>

Hey guys, I just notice if we put customize query params in url, that would be overridden by `search-ui`  
for example, the original url is [React App](https://wrjpz.csb.app/app-search?size=n_20_n&filters%5B0%5D%5Bfield%5D=states&filters%5B0%5D%5Bvalues%5D%5B0%5D=California&filters%5B0%5D%5Btype%5D=any)  
and we change this to (just add `abc=123` )  
[React App](https://wrjpz.csb.app/app-search?abc=123&size=n_20_n&filters%5B0%5D%5Bfield%5D=states&filters%5B0%5D%5Bvalues%5D%5B0%5D=California&filters%5B0%5D%5Btype%5D=any)  
when the page is loaded, the `abc=123` is lost, so is there has a way that could keep our customize query params? Thank you.

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [July 6, 2022, 3:01pm UTC](https://discuss.elastic.co/t/can-we-save-some-own-query-params-when-using-trackurlstate/308883/2 "2022-07-06T15:01:41Z")

</div>

Unfortunately not. This is on our radar as an enhancement we'd like to make in the near future.

---

<div class="post-metadata">

**Author:** ![Pudge\_Zhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pudge_zhang/32/107915_2.png) [@Pudge\_Zhang](https://discuss.elastic.co/u/Pudge_Zhang)\
**Post date:** [July 7, 2022, 1:03am UTC](https://discuss.elastic.co/t/can-we-save-some-own-query-params-when-using-trackurlstate/308883/3 "2022-07-07T01:03:20Z")

</div>

Thank you for your reply. sorry for creating the same questions both in [github issue](https://github.com/elastic/search-ui/issues/787) and here. Just want to get reply as possible as quickly.

free feel to post the answer in any side, Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 4, 2022, 1:04am UTC](https://discuss.elastic.co/t/can-we-save-some-own-query-params-when-using-trackurlstate/308883/4 "2022-08-04T01:04:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
