# Open local file on link field

**URL:** <https://discuss.elastic.co/t/open-local-file-on-link-field/247905>\
**Category:** Kibana\
**Created:** [September 8, 2020, 3:06pm UTC](https://discuss.elastic.co/t/open-local-file-on-link-field/247905 "2020-09-08T15:06:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ostr1969](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ostr1969/32/70103_2.png) [@Ostr1969](https://discuss.elastic.co/u/Ostr1969)\
**Post date:** [September 8, 2020, 3:06pm UTC](https://discuss.elastic.co/t/open-local-file-on-link-field/247905/1 "2020-09-08T15:06:56Z")

</div>

on kibana 7.4.2 i have a link field which point to local file.  
when i press it i get [http://localhost:5601/apps/c:/somefile.txt](http://localhost:5601/apps/c:/somefile.txt)  
but this cant be open by click  
how can i remove the prefix of [http://localhost:5601/apps](http://localhost:5601/apps)

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [September 8, 2020, 7:40pm UTC](https://discuss.elastic.co/t/open-local-file-on-link-field/247905/2 "2020-09-08T19:40:46Z")

</div>

In your URL formatter you'll need to include the full URL (including http://) so it isn't treated as a relative URL.

---

<div class="post-metadata">

**Author:** ![Ostr1969](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ostr1969/32/70103_2.png) [@Ostr1969](https://discuss.elastic.co/u/Ostr1969)\
**Post date:** [September 9, 2020, 6:19am UTC](https://discuss.elastic.co/t/open-local-file-on-link-field/247905/3 "2020-09-09T06:19:32Z")

</div>

This field is created by script `doc['path.real'].value`  
How do i write the script to allow openning this file by click?

---

<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:** [October 7, 2020, 6:19am UTC](https://discuss.elastic.co/t/open-local-file-on-link-field/247905/4 "2020-10-07T06:19:32Z")

</div>

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