# Reference hosted URL and Port from Kibana

**URL:** <https://discuss.elastic.co/t/reference-hosted-url-and-port-from-kibana/237292>\
**Category:** Kibana\
**Created:** [June 16, 2020, 12:12pm UTC](https://discuss.elastic.co/t/reference-hosted-url-and-port-from-kibana/237292 "2020-06-16T12:12:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Utkarsh\_Mishra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/utkarsh_mishra/32/70457_2.png) [@Utkarsh\_Mishra](https://discuss.elastic.co/u/Utkarsh_Mishra)\
**Post date:** [June 16, 2020, 12:12pm UTC](https://discuss.elastic.co/t/reference-hosted-url-and-port-from-kibana/237292/1 "2020-06-16T12:12:02Z")

</div>

Hi All,

I am using an internal cloud application within my firm which is a container and can alter host and port at any time. Now I wanted to create a drill-down feature for my dashboard by setting the field type to Link and adding a URL. But, adding a constant URL is not possible for me. I want somehow Kibana to retrieve the current hosted URL and reference that.

Any workarounds here?

Thanx!

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [June 16, 2020, 1:41pm UTC](https://discuss.elastic.co/t/reference-hosted-url-and-port-from-kibana/237292/2 "2020-06-16T13:41:36Z")

</div>

You should be able to just specify the path and hash part of the URL, e.g. `/app/kibana#/dashboard/12345`

---

<div class="post-metadata">

**Author:** ![Utkarsh\_Mishra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/utkarsh_mishra/32/70457_2.png) [@Utkarsh\_Mishra](https://discuss.elastic.co/u/Utkarsh_Mishra)\
**Post date:** [June 17, 2020, 6:59am UTC](https://discuss.elastic.co/t/reference-hosted-url-and-port-from-kibana/237292/3 "2020-06-17T06:59:05Z")

</div>

If I do that, the path and hash part get displayed in the table as the label value[i am making a table visualization]

I don't understand whats happening.

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [June 17, 2020, 7:31am UTC](https://discuss.elastic.co/t/reference-hosted-url-and-port-from-kibana/237292/4 "2020-06-17T07:31:49Z")

</div>

What version are you running? In 7.5 and below there is a bug with relative links like this, but it should be resolved starting from 7.6

> <https://github.com/elastic/kibana/issues/35235>
>
> Kibana version:
> Kibana 7.0.0 through Kibana 7.5.0
> Elasticsearch version:
> Elasticsearch 7.0.0 through Elasticsearch 7.5.0
> Server OS version:
> Ubuntu 16.04
> Browser version:
> Chromium 73
> Browser OS version:
> Ubuntu 16.04
> Original install method...

---

<div class="post-metadata">

**Author:** ![Utkarsh\_Mishra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/utkarsh_mishra/32/70457_2.png) [@Utkarsh\_Mishra](https://discuss.elastic.co/u/Utkarsh_Mishra)\
**Post date:** [June 17, 2020, 7:50am UTC](https://discuss.elastic.co/t/reference-hosted-url-and-port-from-kibana/237292/5 "2020-06-17T07:50:44Z")

</div>

I am using 7.1. Any other workarounds without having to upgrade ?

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [June 17, 2020, 7:55am UTC](https://discuss.elastic.co/t/reference-hosted-url-and-port-from-kibana/237292/6 "2020-06-17T07:55:41Z")

</div>

Unfortunately upgrading is the only way to fix this at the Kibana level. Maybe you can set up a stable host alias or something similar in your internal cloud app so you can use a fully qualified URL instead? Changing host names for accessing Kibana seems like it's also annoying for users.

---

<div class="post-metadata">

**Author:** ![Utkarsh\_Mishra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/utkarsh_mishra/32/70457_2.png) [@Utkarsh\_Mishra](https://discuss.elastic.co/u/Utkarsh_Mishra)\
**Post date:** [June 18, 2020, 5:33am UTC](https://discuss.elastic.co/t/reference-hosted-url-and-port-from-kibana/237292/7 "2020-06-18T05:33:15Z")

</div>

I am actually going to iframe this. So taken care of dynamic url there! But i think I will have to create a stable host alias for future

Thanks alot!

---

<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 16, 2020, 5:33am UTC](https://discuss.elastic.co/t/reference-hosted-url-and-port-from-kibana/237292/8 "2020-07-16T05:33:18Z")

</div>

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