Bug 165878 - LibreOffice Writer docx document - hyperlink dialogs do not function correctly
Summary: LibreOffice Writer docx document - hyperlink dialogs do not function correctly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.5.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Hyperlink-Dialog
  Show dependency treegraph
 
Reported: 2025-03-23 16:13 UTC by Larry Bennett
Modified: 2025-08-26 04:47 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Save/reOpen the document & then examine the two "Battery Isolation" links (13.80 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-03-23 16:20 UTC, Larry Bennett
Details
See additional comments - Do-s and Don't-s Considerations v2.docx (13.80 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-03-24 16:44 UTC, Larry Bennett
Details
See additional comments - Do-s and Don't-s Considerations v2.pdf (112.46 KB, application/pdf)
2025-03-24 16:46 UTC, Larry Bennett
Details
docx document saved after recreating hyperlinks (13.88 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-03-26 21:40 UTC, Larry Bennett
Details
Hyperlink_Battery Isolation internet dialog after add (22.73 KB, image/png)
2025-03-26 22:46 UTC, Larry Bennett
Details
Hyperlink_Battery Isolation document after add (26.89 KB, image/png)
2025-03-26 22:47 UTC, Larry Bennett
Details
Hyperlink_Battery-Isolation internet dialog after add (22.77 KB, image/png)
2025-03-26 22:48 UTC, Larry Bennett
Details
Hyperlink_Battery-Isolation document dialog after add (26.92 KB, image/png)
2025-03-26 22:49 UTC, Larry Bennett
Details
Hyperlink_Battery Isolation internet dialog reviewed (21.24 KB, image/png)
2025-03-26 22:50 UTC, Larry Bennett
Details
Hyperlink_Battery Isolation document dialog reviewed (20.94 KB, image/png)
2025-03-26 22:51 UTC, Larry Bennett
Details
Hyperlink_Battery Isolation document dialog reviewed (20.94 KB, image/png)
2025-03-26 22:52 UTC, Larry Bennett
Details
Hyperlink_Battery-Isolation internet dialog reviewed (18.99 KB, image/png)
2025-03-26 22:55 UTC, Larry Bennett
Details
Hyperlink_Battery-Isolation document dialog reviewed (25.47 KB, image/png)
2025-03-26 22:56 UTC, Larry Bennett
Details
Hyperlink_Battery Isolation internet dialog after saving docx (19.10 KB, image/png)
2025-03-26 22:57 UTC, Larry Bennett
Details
Hyperlink_Battery Isolation document dialog after saving docx (18.72 KB, image/png)
2025-03-26 22:58 UTC, Larry Bennett
Details
Hyperlink_Battery-Isolation internet dialog after saving docx (16.92 KB, image/png)
2025-03-26 22:59 UTC, Larry Bennett
Details
Hyperlink_Battery-Isolation document dialog after saving docx (23.58 KB, image/png)
2025-03-26 23:00 UTC, Larry Bennett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Bennett 2025-03-23 16:13:39 UTC
Description:
I have created a docx document that contains 23 hyperlinks and have discovered that the “insert Hyperlink” functionality has some bizarre behavior. 

In the attached document, there are hyperlinks for “Battery Isolation” and “Battery-Isolation”.  Although I wanted to specify the same “target” for those links, I discovered that I had to use different text (note the “-” in the second text) and I also had to use slightly different targets for the url and name fields.  Despite that work-around, on the “Document” dialogfor inserting a hyperlink, Writer tended to insert strange text into the “Path” field and the “Target” field in addition to erasing the “Name” field; and also erasing the “Name” field on the Internet dialog.

Somehow, after a lot of back & forth on those two hyperlinks, I managed to get the desired data to appear.  However, after saving the document, the data somehow reverted to the strange state that I mentioned above.

LibreOffice Writer
Version 24.8.5.2 (x86)
Build fdd2685c70b461e7832239a0 
Environment: CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 22631
User Interface: UI render; Skia/Raster; VCL: win
Local: en-US (en_US); en-US
Misc: Calc: threaded


Steps to Reproduce:
1.See Description
2.
3.

Actual Results:
See Description

Expected Results:
Retrieve and see the document I reference in "Other Information"


Reproducible: Always


User Profile Reset: Yes

Additional Info:
https://docs.google.com/document/d/1OKoVCB7lL31E5bQHTzm9V22YotJDViYA/edit?usp=sharing&ouid=106246243381852483805&rtpof=true&sd=true
Comment 1 Larry Bennett 2025-03-23 16:20:00 UTC
Created attachment 199975 [details]
Save/reOpen the document & then examine the two "Battery Isolation" links
Comment 2 Jessica 2025-03-24 10:30:22 UTC
Thank you for reporting the bug. I can not reproduce the bug in

Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded

I am also able to use your document and change the "Battery-Isolation" to "Battery Isolation" with the same hyperlink.
Comment 3 Larry Bennett 2025-03-24 16:44:07 UTC
Created attachment 199998 [details]
See additional comments - Do-s and Don't-s Considerations v2.docx
Comment 4 Larry Bennett 2025-03-24 16:46:29 UTC
Created attachment 199999 [details]
See additional comments - Do-s and Don't-s Considerations v2.pdf
Comment 5 Juan Q. 2025-03-26 07:00:02 UTC
Hello Larry,

Thank you for reporting this, I can not reproduce using 

Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 12; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1d8ff7bd62249ad0f825eaca18ea524d9d7c6c2e
CPU threads: 12; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

It seems you're using an old version of LibreOffice.
Could you please try to reproduce it with the latest version of LibreOffice
from <https://www.libreoffice.org/download/download-libreoffice/> ?
Comment 6 Larry Bennett 2025-03-26 21:40:40 UTC
Created attachment 200026 [details]
docx document saved after recreating hyperlinks
Comment 7 Larry Bennett 2025-03-26 22:46:13 UTC
Created attachment 200029 [details]
Hyperlink_Battery Isolation internet dialog after add
Comment 8 Larry Bennett 2025-03-26 22:47:35 UTC
Created attachment 200030 [details]
Hyperlink_Battery Isolation document after add
Comment 9 Larry Bennett 2025-03-26 22:48:18 UTC
Created attachment 200031 [details]
Hyperlink_Battery-Isolation internet dialog after add
Comment 10 Larry Bennett 2025-03-26 22:49:50 UTC
Created attachment 200032 [details]
Hyperlink_Battery-Isolation document dialog after add
Comment 11 Larry Bennett 2025-03-26 22:50:40 UTC
Created attachment 200033 [details]
Hyperlink_Battery Isolation internet dialog reviewed
Comment 12 Larry Bennett 2025-03-26 22:51:30 UTC
Created attachment 200034 [details]
Hyperlink_Battery Isolation document dialog reviewed
Comment 13 Larry Bennett 2025-03-26 22:52:56 UTC
Created attachment 200035 [details]
Hyperlink_Battery Isolation document dialog reviewed
Comment 14 Larry Bennett 2025-03-26 22:55:14 UTC
Created attachment 200036 [details]
Hyperlink_Battery-Isolation internet dialog reviewed
Comment 15 Larry Bennett 2025-03-26 22:56:51 UTC
Created attachment 200037 [details]
Hyperlink_Battery-Isolation document dialog reviewed
Comment 16 Larry Bennett 2025-03-26 22:57:53 UTC
Created attachment 200038 [details]
Hyperlink_Battery Isolation internet dialog after saving docx
Comment 17 Larry Bennett 2025-03-26 22:58:42 UTC
Created attachment 200039 [details]
Hyperlink_Battery Isolation document dialog after saving docx
Comment 18 Larry Bennett 2025-03-26 22:59:33 UTC
Created attachment 200040 [details]
Hyperlink_Battery-Isolation internet dialog after saving docx
Comment 19 Larry Bennett 2025-03-26 23:00:10 UTC
Created attachment 200041 [details]
Hyperlink_Battery-Isolation document dialog after saving docx
Comment 20 Larry Bennett 2025-03-26 23:02:45 UTC
OK:  Both Jessica and Juan are somewhat correct:  the hyperlinks do (sort of) work.  However, the PRESENTATION OF THE DATA DISPLAYED ON THE EDIT DIALOGS IS INCONSISTENT which lead me to comment on the “bizarre behavior”.

I have upgraded my version of LibreOffice to 25.2.1.2 and I have reset the status of this bug to “NEW”

I created v3 of the docx file by removing the hyperlinks for both “Battery Isolation” and “Battery-Isolation” and then recreated the hyperlinks for both. Each of the hyperlinks has two dialogs:  an internet dialog and a document dialog and I captured screen prints of each dialog (four screen prints).

I then went back and reviewed the two dialogs for both hyperlinks capturing screen prints (four additional screen prints)

Reviewing each of the two hyperlinks’ dialogs, note that on the document dialog for “Battery Isolation” that the path and target fields disappeared and that on the internet dialog for “Battery-Isolation” the url disappeared.  After saving and re-opening the docx document, the name fields disappeared on both dialogs for both the “Battery Isolation” link and the “Battery-Isolation link.

Before the name fields disappeared, the text that appeared in the pop-up was correct.  After the name fields disappeared, hovering over the links DOES NOT DISPLAY THE TARGET url..  In each situation,CTRL-CLICK in the docx document and left-click in the PDF document retrieves the expected result.

INCONSISTENT AND CONFUSING!!
Comment 21 Larry Bennett 2025-03-26 23:07:50 UTC
Changed status back to new based on comments and attachments added 3/26/2025
Comment 22 Jessica 2025-03-27 06:01:48 UTC
Hi Larry,

ok, now I can reproduce the bug in 


Version: 25.2.1.2 (X86_64) / LibreOffice Community
Build ID: d3abf4aee5fd705e4a92bba33a32f40bc4e56f49
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded
Comment 23 Larry Bennett 2025-03-27 14:33:56 UTC
PS:

On the initial display of the hyperlink dialogs, there should be NO ATTEMPT to transfer existing data from the clipboard into the dialog.

I’m not sure about the need for the “New Document” dialog…

The “Internet” dialog should have a field for “target within (the above) url”?  Also, when processing the “url” field, there shouldn’t be any attempt to identify a potential reference to a “target in document” (text within the “url” that is prefixed with a “#” symbol)

The “Document” dialog be re-titled “Link within this document” and should not have a “path” field?

And, the “name” field in each of the dialogs should be re-titled to be something like “balloon text displayed when the hovering over “text” field”.  And there shouldn’t be any attempt to erase any data entered within it.  If no data is entered in the (renamed) “name” field, the logic should replicate the “url” field into the (renamed) “name” field as data is typed into the “url” field; if that is not what the user wants, the user can adjust the data accordingly.  If the (renamed) ”name” field is empty when the user clicks “ok” or “close” replicate the “text” field into it.