Instead of failing with "is not an absolute URL" error.
For example in the HYPERLINK() spreadsheet function where Excel supports it, but also anywhere else that calls OpenURL(). A relative reference is relative to the current document, or for yet unsaved documents or if no object shell is available relative to the work path, as usual.
Additional benefit is that "\\" UNC path names are accepted as smb:// Samba shares and DOS \ path name separators resolved for a proper file:// URI.
Users are asking for this, found no related tdf# bug/RFE. See https://ask.libreoffice.org/en/question/160280/relative-and-absolute-hyperlinks/ and other linked q&a therein.
Change-Id: Ib314b71d68fbe1793ec614cbf7c0c058fad14a10 Reviewed-on: https://gerrit.libreoffice.org/57277
e6b18c1d0f37 ScGlobal::OpenURL: support relative references as URI references in hyperlinks
sc/source/core/data/global.cxx | 23 +++++++++++++++++++++--
1 file changed, 21 insertions(+), 2 deletions(-)