# Refreshing Kibana from plugin

**URL:** <https://discuss.elastic.co/t/refreshing-kibana-from-plugin/209499>\
**Category:** Kibana\
**Created:** [November 26, 2019, 12:03pm UTC](https://discuss.elastic.co/t/refreshing-kibana-from-plugin/209499 "2019-11-26T12:03:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arseni-lipinski](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@arseni-lipinski](https://discuss.elastic.co/u/arseni-lipinski)\
**Post date:** [November 26, 2019, 12:03pm UTC](https://discuss.elastic.co/t/refreshing-kibana-from-plugin/209499/1 "2019-11-26T12:03:18Z")

</div>

I'm updating a plugin for Kibana and earlier (in 4.6.x) the page refresh was implemented by replying with html that contained a JS script. Same actions end in Unexpected token '\<' errors in Kibana now (7.3).

Is there maybe a different approach to passing the command to frontend or a way to fix the '\<' error?

Thanks

---

<div class="post-metadata">

**Author:** ![christophilus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christophilus/32/42991_2.png) [@christophilus](https://discuss.elastic.co/u/christophilus)\
**Post date:** [November 26, 2019, 4:20pm UTC](https://discuss.elastic.co/t/refreshing-kibana-from-plugin/209499/2 "2019-11-26T16:20:25Z")

</div>

Yeah. In general, we don't allow API requests to return executable code. JSON is fine. I think you'll need to update your plugin's front-end and back-end to handle this scenario.

So, your back end might reply with `{ action: 'refresh' }` and your front end would handle that response and do a page refresh.

---

<div class="post-metadata">

**Author:** ![arseni-lipinski](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@arseni-lipinski](https://discuss.elastic.co/u/arseni-lipinski)\
**Post date:** [December 19, 2019, 10:06am UTC](https://discuss.elastic.co/t/refreshing-kibana-from-plugin/209499/3 "2019-12-19T10:06:27Z")

</div>

is there a way to do a page refresh from the component that doesn't belong to the plugin?  
for example, doing it from management component?

---

<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 16, 2020, 10:06am UTC](https://discuss.elastic.co/t/refreshing-kibana-from-plugin/209499/4 "2020-01-16T10:06:28Z")

</div>

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