From 273a9b17c9f319c53ba14530aef9544a3468b89b Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Fri, 7 Feb 2025 10:53:10 +0100 Subject: [PATCH] [release-11.5.2] Share: Fix short links when root_url is different from the browser URL (#100202) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Share: Fix short links when root_url is different from the browser URL (#99950) Share: Fix short links when appUrl is misconfigured (cherry picked from commit cd7c9f8666fbe0a2c91d12506e3a075fb93ced13) Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com> --- 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, }); };