summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2023-05-17 16:09:06 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2023-07-04 20:46:42 +0200
commit8fc7ac5569592d5cd026d292202e8c51d670c241 (patch)
treee5a1762d8c2a780ac753d48bd90a910540fe268b /desktop/source
parent8ffb8e164d9d350a1b9887d0a75e0a82892008ee (diff)
lok: linking-api: export correct target string
export target string instead of boolean so user can jump into the target using that. this is fix for: https://github.com/CollaboraOnline/online/issues/6230 Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: Id4b1a1c65ddcb6f4d94d3939dda9124f2d10e9d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151884 Reviewed-by: Gülşah Köse <gulsah.kose@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153944
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/lib/init.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index bef06bcd4f98..dbd236858ce8 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -480,7 +480,9 @@ static bool extractLinks(const uno::Reference< container::XNameAccess >& xLinks,
if (bIsTarget)
{
- jsonText.append("true");
+ jsonText.append("\"");
+ jsonText.append(aLink);
+ jsonText.append("\"");
continue;
}
jsonText.append("{");