# How to fix URL template in string field type URL

**URL:** <https://discuss.elastic.co/t/how-to-fix-url-template-in-string-field-type-url/226838>\
**Category:** Kibana\
**Created:** [April 7, 2020, 7:15am UTC](https://discuss.elastic.co/t/how-to-fix-url-template-in-string-field-type-url/226838 "2020-04-07T07:15:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![111207](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111207/32/53801_2.png) [@111207](https://discuss.elastic.co/u/111207)\
**Post date:** [April 7, 2020, 7:15am UTC](https://discuss.elastic.co/t/how-to-fix-url-template-in-string-field-type-url/226838/1 "2020-04-07T07:15:56Z")

</div>

Hi Elastic team  
I 'm using FSCrewler to Import data to elasticsearch and I change string field name path.virtual to Link URL.  
I need to click to access into the file.  
How to fix the URL template it

Filename es.txt

 ![link](https://us1.discourse-cdn.com/elastic/original/3X/2/4/24bc80337c4d9d7608fea5559902100bc1f07ed1.jpeg) ![settingURL](https://us1.discourse-cdn.com/elastic/original/3X/2/d/2ddd411bd70bef54b1dec5938bc3ce017a6ee8c6.jpeg)  
path: [http://192.168.1.145/esdata/doc/es.txt](http://192.168.1.145/esdata/doc/es.txt)  
URL: template:[http://192.168.1.145/esdata/{{value}](http://192.168.1.145/esdata/%7B%7Bvalue%7D)}  
[http://192.168.1.145/esdata/%2Fdoc%2Fes.txt](http://192.168.1.145/esdata/%2Fdoc%2Fes.txt)

---

<div class="post-metadata">

**Author:** ![Liza\_Katz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/liza_katz/32/52358_2.png) [@Liza\_Katz](https://discuss.elastic.co/u/Liza_Katz)\
**Post date:** [April 7, 2020, 12:05pm UTC](https://discuss.elastic.co/t/how-to-fix-url-template-in-string-field-type-url/226838/2 "2020-04-07T12:05:16Z")

</div>

Hey @111207

Which Kibana version are you using?  
Is the field not opening anything when clicking on it?  
Or is the URL it opens broken?

I've tried this in V7.7 and it seems to work.

Let us know,  
Liza

---

<div class="post-metadata">

**Author:** ![111207](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111207/32/53801_2.png) [@111207](https://discuss.elastic.co/u/111207)\
**Post date:** [April 8, 2020, 4:22am UTC](https://discuss.elastic.co/t/how-to-fix-url-template-in-string-field-type-url/226838/3 "2020-04-08T04:22:54Z")

</div>

Hi Liza  
Thank you for your comment  
The URL it open broken.  
It can access the directory Of that file But what I want is to open that file immediately when clicking this URL

 ![directory](https://us1.discourse-cdn.com/elastic/original/3X/c/1/c108e909d14b985bf4d88424cee5e50b9eeab70b.jpeg)

---

<div class="post-metadata">

**Author:** ![111207](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111207/32/53801_2.png) [@111207](https://discuss.elastic.co/u/111207)\
**Post date:** [April 10, 2020, 5:11am UTC](https://discuss.elastic.co/t/how-to-fix-url-template-in-string-field-type-url/226838/4 "2020-04-10T05:11:24Z")

</div>

I'm tried to delete '#' before /{{value}} and paste URL file manual in Web browser.It's ok.  
But If we delete '#' before /{{value}} The Url auto insert "%2F" between directory and file name.It's have an error 404

 ![link error](https://us1.discourse-cdn.com/elastic/original/3X/4/9/49b4fa5dae7b5654291f57c9bb1cae5f2cc20b30.jpeg)

---

<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:** [May 8, 2020, 5:11am UTC](https://discuss.elastic.co/t/how-to-fix-url-template-in-string-field-type-url/226838/5 "2020-05-08T05:11:28Z")

</div>

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