https://bugs.documentfoundation.org/show_bug.cgi?id=150684

            Bug ID: 150684
           Summary: Heading Hyperlinks lost when new heading added
           Product: LibreOffice
           Version: 7.4.0.3 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

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

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to