Bug 150684 - Heading Hyperlinks lost when new heading added
Summary: Heading Hyperlinks lost when new heading added
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-30 10:01 UTC by DM
Modified: 2023-04-29 03:29 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DM 2022-08-30 10:01:17 UTC
Description:
If you create a document with a heading (I used lvl 2), then a hyperlink to that heading, you can ctrl-click the hyperlink and it will jump there.
But if you now add a heading (same level) somewhere between the hyperlink and the heading, the hyperlink will now jump to this new heading, not the one it was set up for. The old heading has not been changed in any way.
In other words the hyperlink seems to be made of the kind "nth instance of heading X" so any new heading you insert will cause all your existing hyperlinks to headings after the insertion to fail. No one will want dynamic hyperlinks to "nth headings" (you'd have to change all the titles to the hyperlinks anyway if their targets change).
It should be obvious that a hyperlink made to a heading should be fixed to that heading even if a new heading is added somewhere in the document. I dare say an explicit bookmark could be manually added for every heading used but one shouldn't have to do that if the hyperlinking is implemented properly. That is, hyperlinking to a heading should itself create a bookmark on it if needed, or every heading should intrinsically have a bookmark id assigned to it (that's independent of the heading altering its wording).
This is a *particularly* problematic issue as hyperlinking to headings is very useful, but currently completely worthless.
Cheers, David

Steps to Reproduce:
As outlined

Actual Results:
Hyperlinks to headings change when new headings added

Expected Results:
Hyperlinks should be static


Reproducible: Always


User Profile Reset: No



Additional Info:
LO 7.4.0.3 64-bit, Win64
Comment 1 DM 2022-08-30 12:10:59 UTC
I see there's a way of dragging in hyperlinks from the side bar, which works properly.
This bug refers to the Ctrl-K or Insert - Hyperlink menu route to creating hyperlinks.
d
Comment 2 raal 2022-08-31 18:12:22 UTC
Works for me in Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 27892a5e12dada80226f778ab2bd14b1bdaab58a
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 3 Timur 2022-09-29 09:33:50 UTC
Also no repro. 
Please attach a sample document and write in it exactly how you created your hyperlink.
Comment 4 QA Administrators 2023-03-29 03:26:01 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2023-04-29 03:29:47 UTC
Dear DM,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp