# How to disable "View surrounding documents" and "View single document" options from discover searches

**URL:** https://discuss.elastic.co/t/how-to-disable-view-surrounding-documents-and-view-single-document-options-from-discover-searches/317786
**Category:** Kibana
**Tags:** kibana-plugin-development
**Created:** [October 31, 2022, 8:12am UTC](https://discuss.elastic.co/t/how-to-disable-view-surrounding-documents-and-view-single-document-options-from-discover-searches/317786 "2022-10-31T08:12:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sanskar-panchal-gith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sanskar-panchal-gith/32/103339_2.png) [@sanskar-panchal-gith](https://discuss.elastic.co/u/sanskar-panchal-gith)
#### Post date: [October 31, 2022, 8:12am UTC](https://discuss.elastic.co/t/how-to-disable-view-surrounding-documents-and-view-single-document-options-from-discover-searches/317786/1 "2022-10-31T08:12:54Z")

</div>

Hi ,

I am working on a Kibana plugin where I have used EmbeddableRenderer to show an dashboard and later I am embedding this dashboard inside an react application with share functionality of dashboard.

There is a discover search inside this dashboard , when any row is expanded we get options "View surrounding documents" and "View single document" , I want to disable these options because when user clicks on these options we get navigated out to kibana ui.

Basically I want an embedded dashboard with no external links because they enable kibana side nav and branding which is disabled in iframe dashboard.

---

<div class="post-metadata">

### Author: ![jughosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jughosta/32/107160_2.png) [@jughosta](https://discuss.elastic.co/u/jughosta)
#### Post date: [October 31, 2022, 9:50am UTC](https://discuss.elastic.co/t/how-to-disable-view-surrounding-documents-and-view-single-document-options-from-discover-searches/317786/2 "2022-10-31T09:50:02Z")

</div>

Hi @sanskar-panchal-gith !  
Currently, we don't have an option to disable them. Could you please create a Github issue? Thanks!

> **[Issues · elastic/kibana](https://github.com/elastic/kibana/issues)**
>
> Your window into the Elastic Stack. Contribute to elastic/kibana development by creating an account on GitHub.

---

<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: [November 26, 2022, 11:36am UTC](https://discuss.elastic.co/t/how-to-disable-view-surrounding-documents-and-view-single-document-options-from-discover-searches/317786/3 "2022-11-26T11:36:08Z")

</div>



---

<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 24, 2022, 8:37am UTC](https://discuss.elastic.co/t/how-to-disable-view-surrounding-documents-and-view-single-document-options-from-discover-searches/317786/4 "2022-12-24T08:37:00Z")

</div>



---

<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: [January 21, 2023, 8:37am UTC](https://discuss.elastic.co/t/how-to-disable-view-surrounding-documents-and-view-single-document-options-from-discover-searches/317786/5 "2023-01-21T08:37:55Z")

</div>

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