# Adding 2 button on Kibana discover page and enable it

**URL:** <https://discuss.elastic.co/t/adding-2-button-on-kibana-discover-page-and-enable-it/238214>\
**Category:** Kibana\
**Created:** [June 23, 2020, 8:46am UTC](https://discuss.elastic.co/t/adding-2-button-on-kibana-discover-page-and-enable-it/238214 "2020-06-23T08:46:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![edisonyang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/edisonyang/32/69895_2.png) [@edisonyang](https://discuss.elastic.co/u/edisonyang)\
**Post date:** [June 23, 2020, 8:46am UTC](https://discuss.elastic.co/t/adding-2-button-on-kibana-discover-page-and-enable-it/238214/1 "2020-06-23T08:46:23Z")

</div>

Hi,  
I want to add 2 button in discover page to call external HTTP API from our server, because I need the wonderful filter bar to add params to my request.  
I've successfully added the 2 button in  
`kibana/src/legacy/core_plugins/kibana/public/discover/controllers/discover.js:topNavMenu`  
and called our external API correctly in "local" dev environment,  
but after I replaced the discover.js on our kibana server with the modified one and restart kibana service, the discover page did not update.

I'm using ES/kibana 6.8.6, and I'm sure that my local env use the same version.  
\*Install by rpm

What should I do to update the discover page source?  
Or I know that develop a plugin may be the better way but is there a way to copy full discover page to my plugin and I can add another button to it?

---

<div class="post-metadata">

**Author:** ![edisonyang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/edisonyang/32/69895_2.png) [@edisonyang](https://discuss.elastic.co/u/edisonyang)\
**Post date:** [June 23, 2020, 10:52am UTC](https://discuss.elastic.co/t/adding-2-button-on-kibana-discover-page-and-enable-it/238214/2 "2020-06-23T10:52:52Z")

</div>

Oops, I only need to build my kibana rpm from my modified source and install it. It works, 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:** [July 21, 2020, 10:53am UTC](https://discuss.elastic.co/t/adding-2-button-on-kibana-discover-page-and-enable-it/238214/3 "2020-07-21T10:53:01Z")

</div>

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