# Switch to another dashboard/internal site using href on a mark in vega

**URL:** https://discuss.elastic.co/t/switch-to-another-dashboard-internal-site-using-href-on-a-mark-in-vega/310623
**Category:** Kibana
**Tags:** vega
**Created:** [July 26, 2022, 10:12am UTC](https://discuss.elastic.co/t/switch-to-another-dashboard-internal-site-using-href-on-a-mark-in-vega/310623 "2022-07-26T10:12:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Sybye](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Sybye](https://discuss.elastic.co/u/Sybye)
#### Post date: [July 26, 2022, 10:12am UTC](https://discuss.elastic.co/t/switch-to-another-dashboard-internal-site-using-href-on-a-mark-in-vega/310623/1 "2022-07-26T10:12:23Z")

</div>

I'd like to switch to another dashboard or to the home screen when clicking a mark in a vega visualization.  
How am I supposed to define the href value?

Relative paths are not working for me..  
"href": {"value": "/app/home"}  
"href": {"value": "/app/r/s/gjVQU"}

When using the whole URL with same IP/hostname the href isn't working either..  
"href": {"value": "[https://192.168.xxx.xxx:5601/app/home](https://192.168.xxx.xxx:5601/app/home)"}  
"href": {"value": "[https://192.168.xxx.xxx:5601/app/r/s/gjVQU](https://192.168.xxx.xxx:5601/app/r/s/gjVQU)"}

There is just nothing happening when clicking the mark.

"href": {"value": "[https://google.com](https://google.com)"} is working, as well as any other external link.  
Seems to be an issue within the domain.

Using "window.open("[https://192.168.xxx.xxx:5601/app/home](https://192.168.xxx.xxx:5601/app/home)", "\_self")"  
or "window.open("/app/home", "\_self")"  
in the Developer Console (F12) works fine as well.

I wasn't able to find any solution concerning relativ paths.  
What am I doing wrong?

---

<div class="post-metadata">

### Author: ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)
#### Post date: [July 26, 2022, 12:21pm UTC](https://discuss.elastic.co/t/switch-to-another-dashboard-internal-site-using-href-on-a-mark-in-vega/310623/2 "2022-07-26T12:21:18Z")

</div>

Hey, I think you encounter this bug [[Vega] Clicking on an internal url doesn't work · Issue #135788 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/135788). We have provided a fix for 8.4 🙂

---

<div class="post-metadata">

### Author: ![Sybye](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Sybye](https://discuss.elastic.co/u/Sybye)
#### Post date: [August 8, 2022, 6:30am UTC](https://discuss.elastic.co/t/switch-to-another-dashboard-internal-site-using-href-on-a-mark-in-vega/310623/3 "2022-08-08T06:30:38Z")

</div>

Thank you for your quick answer! Unfortunately i was on vacation for two weeks now.. Is there a release for 8.4 yet?

---

<div class="post-metadata">

### Author: ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)
#### Post date: [August 8, 2022, 6:32am UTC](https://discuss.elastic.co/t/switch-to-another-dashboard-internal-site-using-href-on-a-mark-in-vega/310623/4 "2022-08-08T06:32:09Z")

</div>

Not yet but it will be released soonish!

---

<div class="post-metadata">

### Author: ![Sybye](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Sybye](https://discuss.elastic.co/u/Sybye)
#### Post date: [August 8, 2022, 6:33am UTC](https://discuss.elastic.co/t/switch-to-another-dashboard-internal-site-using-href-on-a-mark-in-vega/310623/5 "2022-08-08T06:33:05Z")

</div>

Oh that was fast 😃 Alright! I'll find a workaround until then.

Thank you for your help!

---

<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: [September 5, 2022, 6:33am UTC](https://discuss.elastic.co/t/switch-to-another-dashboard-internal-site-using-href-on-a-mark-in-vega/310623/6 "2022-09-05T06:33:43Z")

</div>

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