From aa818a0b977084af21667fb68d1728bd5f300c4b Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 13 Apr 2021 17:22:10 +0200 Subject: sw bibliography, refer to a page: fix biblio field relative URLs Clicking always requires an absolute URL, so add functionality to get the absolute URL (even if the field has a relative one) and use that when handling a click. Change-Id: I05f8b11937eac7b6032750557f4066181c6e4520 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114059 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- sw/source/uibase/wrtsh/wrtsh2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/uibase/wrtsh') diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx b/sw/source/uibase/wrtsh/wrtsh2.cxx index 66b38c3d84ea..90f08fd33a81 100644 --- a/sw/source/uibase/wrtsh/wrtsh2.cxx +++ b/sw/source/uibase/wrtsh/wrtsh2.cxx @@ -411,7 +411,7 @@ void SwWrtShell::ClickToField(const SwField& rField, bool bExecHyperlinks) break; } - const OUString& rURL = pField->GetAuthEntry()->GetAuthorField(AUTH_FIELD_URL); + const OUString& rURL = pField->GetAbsoluteURL(); ::LoadURL(*this, rURL, LoadUrlFlags::NewView, /*rTargetFrameName=*/OUString()); } break; -- cgit