# "Unable to completely restore the URL" when viewing results from osquery in discover

**URL:** <https://discuss.elastic.co/t/unable-to-completely-restore-the-url-when-viewing-results-from-osquery-in-discover/327231>\
**Category:** Kibana\
**Tags:** osquery-manager\
**Created:** [March 7, 2023, 10:32pm UTC](https://discuss.elastic.co/t/unable-to-completely-restore-the-url-when-viewing-results-from-osquery-in-discover/327231 "2023-03-07T22:32:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nemhods](https://avatars.discourse-cdn.com/v4/letter/n/48db29/32.png) [@nemhods](https://discuss.elastic.co/u/nemhods)\
**Post date:** [March 7, 2023, 10:32pm UTC](https://discuss.elastic.co/t/unable-to-completely-restore-the-url-when-viewing-results-from-osquery-in-discover/327231/1 "2023-03-07T22:32:43Z")

</div>

Hey,

When investigating the results from osquery, I want to use the "View in Discover" button:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/b/bbc9e86c0acfe59af839112b78462aa80bb04a7a.png)  
It leads me to discover, but applies no filters and shows an error popup with the message "Unable to completely restore the URL". The URL is, for example, "/app/discover#/?\_g=h@56697bc&\_a=h@411c081", because I've enabled "state:storeInSessionStorage=true" in Advanced Settings. This may be the culprit here. If i reset this to false (which is the default), everything works!

The "View in Lens" Buttons work perfectly. I can even eventually get to the results in discover by first going to lens, and then choosing "Explore Data in Discover" from lens.

Is "state:storeInSessionStorage=true" expected to break things, or could this be a bug in the osquery UIs?

Thanks!

Edit: Shame on me for forgetting this - this is on 8.6.2.

---

<div class="post-metadata">

**Author:** ![Dzmitry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzmitry/32/65026_2.png) [@Dzmitry](https://discuss.elastic.co/u/Dzmitry)\
**Post date:** [March 9, 2023, 3:07pm UTC](https://discuss.elastic.co/t/unable-to-completely-restore-the-url-when-viewing-results-from-osquery-in-discover/327231/2 "2023-03-09T15:07:37Z")

</div>

Hi @nemhods ,

Afaik "state:storeInSessionStorage" was introduced as a workaround for url length limits issue in some legacy browsers, so I don't think it should break things.

What browser are you using?

Sound like an issue so far, but I will check internally and reply here.

Regards, Dima

---

<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:** [April 6, 2023, 3:08pm UTC](https://discuss.elastic.co/t/unable-to-completely-restore-the-url-when-viewing-results-from-osquery-in-discover/327231/3 "2023-04-06T15:08:19Z")

</div>

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