Pass value through Url

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