# Workaround for Dashboard short Share Link on Kibana v8.15.1

**URL:** <https://discuss.elastic.co/t/workaround-for-dashboard-short-share-link-on-kibana-v8-15-1/368061>\
**Category:** Kibana\
**Tags:** dashboard\
**Created:** [October 1, 2024, 5:51am UTC](https://discuss.elastic.co/t/workaround-for-dashboard-short-share-link-on-kibana-v8-15-1/368061 "2024-10-01T05:51:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cisupport-zkb](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@cisupport-zkb](https://discuss.elastic.co/u/cisupport-zkb)\
**Post date:** [October 1, 2024, 5:51am UTC](https://discuss.elastic.co/t/workaround-for-dashboard-short-share-link-on-kibana-v8-15-1/368061/1 "2024-10-01T05:51:06Z")

</div>

Hi everyone,

Since Kibana v8.15 and of course in v8.15.1 the Dashboard short Share Link doesn't work as expected, one user opened an [issue](https://github.com/elastic/kibana/issues/191090), although has been [improved](https://www.elastic.co/guide/en/kibana/8.15/whats-new.html#_sharing_improvements).

Is there a workaround to get in Kibana v8.15.1 Dashboard short Share Link?

Thanks a lot.

Best regards,  
Gabriele

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [October 1, 2024, 9:25am UTC](https://discuss.elastic.co/t/workaround-for-dashboard-short-share-link-on-kibana-v8-15-1/368061/2 "2024-10-01T09:25:43Z")

</div>

Check this other [issue](https://github.com/elastic/kibana/issues/192980), the workaround should be to add `embed=true` to the copied URL.

---

<div class="post-metadata">

**Author:** ![cisupport-zkb](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@cisupport-zkb](https://discuss.elastic.co/u/cisupport-zkb)\
**Post date:** [October 1, 2024, 10:58am UTC](https://discuss.elastic.co/t/workaround-for-dashboard-short-share-link-on-kibana-v8-15-1/368061/3 "2024-10-01T10:58:56Z")

</div>

Hi Jorge,

Before in Kibana v8.11.1 it was possible to have this kind of short link:

`https://<KibanaURL>/app/r/s/tEsT12`

Now with v8.15.1 it's not possible anymore.  
For this kind of short link is there a way to have it in v8.15.1 (workaround)?

Thanks.

Best regards,  
Gabriele

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [October 1, 2024, 4:27pm UTC](https://discuss.elastic.co/t/workaround-for-dashboard-short-share-link-on-kibana-v8-15-1/368061/4 "2024-10-01T16:27:31Z")

</div>

There is no direct workaround, I'm afraid. The issue you fund is the correct place to track its fixing.

> <https://github.com/elastic/kibana/issues/191090>
>
> \*\*Kibana version:\*\*
> 8.15.0
> 
> \*\*Elasticsearch version:\*\*
> 8.15.0
> 
> \*\*Server OS… version:\*\*
> Ubuntu
> 
> \*\*Browser version:\*\*
> Chrome and Edge
> 
> \*\*Original install method (e.g. download page, yum, from source, etc.):\*\*
> ECK
> 
> \*\*Describe the bug:\*\*
> It seems that Sharing Link improvement in 8.15.0 has a defect in the Dashboards
> https://www.elastic.co/guide/en/kibana/current/whats-new.html#\_sharing\_improvements
> 
> After making some dashboard filter tweaks I want to share the link with my co-workers (Share \> Links \> Copy Link)... the copied link is very very long. 
> 
> For comparison, in our testing, the Discover search gets converted to a short link but sharing from Dashboard results in long all query parameters being encoded in URL.
> 
> 
> \*\*Steps to reproduce:\*\*
> 1. Open Saved Dashboard
> 2. Apply some filtering to data and timeframe 
> 3. Click Share \> Links \> Copy Link button
> 4. Paste the copied URL somewhere and observe how long it is
> 
> \*\*Expected behavior:\*\*
> Copied URL should be short per the 8.15.0 "whats new" documentation
> 
> OR
> 
> There should be and option to "generate short link" so that user can decide
> 
> \*\*Screenshots (if relevant):\*\*
> not relevant
> 
> \*\*Errors in browser console (if relevant):\*\*
> No errors or console messages when clicking Copy Link button
> 
> some errors and warning when Dashboard loads (in both Chrome and Edge)
> \<img width="1729" alt="image" src="https://github.com/user-attachments/assets/2c8a9d09-65b9-4c44-9607-31dad06ad094"\>
> 
> 
> \*\*Provide logs and/or server output (if relevant):\*\*
> 
> dashboards#/view/d72fb2c0-36d7-11ee-91a2-a3ab7583b3da?\_g=(refreshInterval:(pause:!t,value:0),time:(from:now-1h,to:now)):178 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'report-sample' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-Vf/5lhWIh6ub3ANk6a6rqRaf7x7HUixyrKDFs2axDL0='), or a nonce ('nonce-...') is required to enable inline execution.
>        
> bootstrap.js:42 ^ A single error about an inline script not firing due to content security policy is expected!
> 
> 
> 
> \*\*Any additional context:\*\*
> 
> \- worked in prior versions 8.14
> \- reported by multiple users on different browsers and networks
> \- tested in Chrome and Edge - same result
> \- tested in Incognito Mode- same result

---

<div class="post-metadata">

**Author:** ![cisupport-zkb](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@cisupport-zkb](https://discuss.elastic.co/u/cisupport-zkb)\
**Post date:** [October 2, 2024, 5:22am UTC](https://discuss.elastic.co/t/workaround-for-dashboard-short-share-link-on-kibana-v8-15-1/368061/5 "2024-10-02T05:22:53Z")

</div>

Hi Jorge,

Thanks for sending me the link of the opened issue on GitHub!  
Hope it will be fixed in the next major release.

Best regards,  
Gabriele

---

<div class="post-metadata">

**Author:** ![syepes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syepes/32/126274_2.png) [@syepes](https://discuss.elastic.co/u/syepes)\
**Post date:** [October 21, 2024, 7:57pm UTC](https://discuss.elastic.co/t/workaround-for-dashboard-short-share-link-on-kibana-v8-15-1/368061/6 "2024-10-21T19:57:50Z")

</div>

If anyone else is searching for a workaround until this gets fixed, you can build you own URL with the below API call.  
You can even specify you own 4 char short URL by specifying the parameter "slug" (humanReadableSlug need to be removed)

```auto
POST kbn:api/short_url
{
  "locatorId": "LEGACY_SHORT_URL_LOCATOR",
  "params":
  {
    "url": "/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-1m,to:now))&_a=(columns:!(),dataSource:(dataViewId:a2aff44e-17d6-4873-912a-445e7c77b7a5,type:dataView),filters:!(),hideChart:!f,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))"
  },
  "humanReadableSlug": true
}

```

---

<div class="post-metadata">

**Author:** ![cisupport-zkb](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@cisupport-zkb](https://discuss.elastic.co/u/cisupport-zkb)\
**Post date:** [October 22, 2024, 5:41am UTC](https://discuss.elastic.co/t/workaround-for-dashboard-short-share-link-on-kibana-v8-15-1/368061/7 "2024-10-22T05:41:42Z")

</div>

Hi Sebastian,

I just tested the API on the DevTools Console and it works also with Dashboard Link.  
Thank you!

Best regards,  
Gabriele
