# Pass value through Url

**URL:** <https://discuss.elastic.co/t/pass-value-through-url/290026>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [November 24, 2021, 8:40am UTC](https://discuss.elastic.co/t/pass-value-through-url/290026 "2021-11-24T08:40:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aslan](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@aslan](https://discuss.elastic.co/u/aslan)\
**Post date:** [November 24, 2021, 8:40am UTC](https://discuss.elastic.co/t/pass-value-through-url/290026/1 "2021-11-24T08:40:35Z")

</div>

Hi Community,

i am using the react search ui and wonder how i could pass a value through the URL and use it somewhere in the app for example in the Results for a link to another site. TrackUrlState is setted true.  
I thought i could pass the value through the query. My idea was to save the value and clear the search immediately because i dont want to search against this value. Then call it in the Result component. But i dont know how to manage this in react. This is my first react project.

Maybe someone has a better idea how i can manage this with given tools ?

Thanks in advance  
Yasin

---

<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:** [December 22, 2021, 8:40am UTC](https://discuss.elastic.co/t/pass-value-through-url/290026/2 "2021-12-22T08:40:45Z")

</div>

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