Bug 163851 - Suggested Improvement for Insert Hyperlink
Summary: Suggested Improvement for Insert Hyperlink
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-11 20:27 UTC by Adalbert Hanßen
Modified: 2024-11-22 17:12 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 Adalbert Hanßen 2024-11-11 20:27:51 UTC
In the similar thread https://bugs.documentfoundation.org/show_bug.cgi?id=162753#c17 I tested an improvement. During this test I found some inconsistencies, which I described in this attachment to it: https://bugs.documentfoundation.org/attachment.cgi?id=197543. I was asked to open a new issue, since I proposed further improvements.

The inconsistency regards the graying out of buttons which have to be used (and which fortunately are active), so this part of my findings is merely a small cosmetic issue.

The other suggestion was to first trim what is on the clipboard before testing, whether it is a valid URL (or file, see next paragraph).

In the subsequent https://bugs.documentfoundation.org/show_bug.cgi?id=162753#c18 I reported, that a hyperlink can also target to a file in one's own computer, which can be inserted by using the "Internet" dialog part. But for such an "URL", another type of checking for the validity (if it already is on the clipboard. When I use this feature, it always is on the clipboard because I always use the file browser first and copy the location of the file which I mean by Ctrl-c. In such a case, another type of validity checking becomes necessary (which also is operating system dependent).

BTW: the functionality inside of LibreOfficeWriter is already capable to further specify a target, e.g. a bookmark or a heading within that file by use of the category "Document" from the left column after the file itself has first been specified under "Internet". I use this property quite often. Such a hyperlink would become something like "file:///home/a/Ö/FM%20LO/2024-11-11_2024-02-14_revisited_Strange%20behavior%20when%20you%20want%20to%20place%20a%20hyperlink%20to%20position%20in%20the%20same%20document_159722.odt#topic 1" (with the unsubstituted blank in "topic 1" after the hash. This hyperlink opens the file and positions directly to this bookmark, which also has the shown blank in it.)
Comment 1 Andreas Heinisch 2024-11-11 21:11:55 UTC
(In reply to Adalbert Hanßen from comment #0)
> In the similar thread
> https://bugs.documentfoundation.org/show_bug.cgi?id=162753#c17 I tested an
> improvement. During this test I found some inconsistencies, which I
> described in this attachment to it:
> https://bugs.documentfoundation.org/attachment.cgi?id=197543. I was asked to
> open a new issue, since I proposed further improvements.
> 

> The other suggestion was to first trim what is on the clipboard before
> testing, whether it is a valid URL (or file, see next paragraph).
> 

This will be committed in the other bug report: https://gerrit.libreoffice.org/c/core/+/176409