From cd7c9f8666fbe0a2c91d12506e3a075fb93ced13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agn=C3=A8s=20Toulet?= <35176601+AgnesToulet@users.noreply.github.com> Date: Tue, 4 Feb 2025 14:00:55 +0100 Subject: [PATCH] Share: Fix short links when root_url is different from the browser URL (#99950) Share: Fix short links when appUrl is misconfigured --- public/app/core/utils/shortLinks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/core/utils/shortLinks.ts b/public/app/core/utils/shortLinks.ts index 9dbf1d414fb..b2096abc8fb 100644 --- a/public/app/core/utils/shortLinks.ts +++ b/public/app/core/utils/shortLinks.ts @@ -70,7 +70,7 @@ export const createDashboardShareUrl = (dashboard: DashboardScene, opts: ShareLi slug: dashboard.state.meta.slug, currentQueryParams: location.search, updateQuery: urlParamsUpdate, - absolute: true, + absolute: !opts.useShortUrl, }); };