The "Structure"-field in a user-defined index allows to set hyperlink-start(LS) and hyperlink-end (LE). But they do not generate a hyperlink. The feature request for hyperlinks is in bug 71385. This bug report is about the fact, that the UI gives an option, which does not really exists.
This bug applies to a user-defined index in the strict sense, using index marks, but it works for a user-defined table of contents. So it seems only one step to solve bug #71385 has been done but the rest is still missing. I can reproduce it too in Version: 6.2.0.0.alpha0+ (x64) Build ID: 89a60912bba7ffd6f65ea99f4664f343c5025c95 CPU threads: 4; OS: Windows 10.0; UI render: GL; TinderBox: Win-x86_64@42, Branch:master, Time: 2018-10-01_03:18:33 Locale: de-DE (de_DE); Calc: threaded
IIRC Caolan added hyperlinks to some index or other?
I guess we can use the same version as bug 71385
The hyperlinks work in Table of Figures, Index of Tables and Table of Objects in addition to TOC in LO 7.0, but still not in User-Defined index. To be clear, the link marks are in the entries and are preserved in save and reload, but they do not work as links. That is different from bug 71385, where hyperlinks neither exist in LO nor in ODF 1.3.
hyperlinks work in User-Defined Index already, if you configure your index to be created from paragraph styles. what doesn't work is hyperlinks to ToXMarks, this doesn't work in Table of Contents either.
Michael Stahl committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/7685c0746cf0db6f51c6a7a488f4a960f8eab3c9 tdf#121842 sw: add hyperlinks to toxmarks in ToC/User-Defined Index It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
fixed on master
Created attachment 169410 [details] Screenshot The hyperlink works, but the tooltip looks strange, see attached screenshot.
working as designed :) thanks for testing (it would be possible in theory not to url-encode the %7C but there's no URI::encode flag for that effect...)
If you make an index for tables, the ! and the | are not url-encoded, neither in the tooltip of the index nor in the tooltip in 'Hyperlinks' section in Navigator. I would expect the same behavior here.
yes that's true, but the problem is "|" isn't encoded because rtl::Uri::encode implements an outdated RFC 2732 that allows "[", "]" but the current RFC 3986 requires encoding them, so we can't use rtl_UriCharClassUric "!" isn't usable as a separator because both the text of the toxmark and the name of the user-defined index are unrestricted strings so we have to use some character that can't be used in those strings which leaves only control characters basically
oh i forgot, the other problem is: it's possible that some of the existing strings that go into fragments are unrestricted as well and may contain characters requiring encoding, it's a bug that that isn't done in those cases
sorry, i mis-remembered: the "|" is not actually allowed anywhere in a URI in RFC3986 and probably not in the earlier RFCs either. the existing links being generated there are all buggy, they have to be encoded.
Oh I see. Then the href-value, that is produced by the Index of Tables is currently invalid. I've seen you have already written a patch in regard to encoding. But as the encoding is necessary to generate valid URLs, a new enhancement request is needed, to change the generation of the tooltips so, that there the URL is decoded to be better human readable.
Michael Stahl committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/7f14ea4431cb4182bccbd9998a60db2f9d9ae07a (related: tdf#121842) sw: encode URLs generated in ToX It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Guide authors are having trouble with this: https://listarchives.libreoffice.org/global/documentation/2021/msg00708.html
checked alphabetical, user defined index entries not working in Version: 7.2.0.4 / LibreOffice Community Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3 Locale: en-IN (en_IN); UI: en-US Calc: threaded
This one needs clarification and it better had sample document. Is it the same as bug 65463? If not please explain. Is what shariqkeen wrote this or bug 71385, which seem to be the same as bug 37608?
everything is working, rechecked in 7.2.1. My fault. Confusion created by facts that hyperlinks not available in 'alphabetical index' [which is not related to this bug] and hyperlinks are turned off by default in 'user-defined index'.