Bug 166309 - hyperlink to website [Content-Type: text/html] named .odt not opened by browser
Summary: hyperlink to website [Content-Type: text/html] named .odt not opened by browser
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Hyperlink
  Show dependency treegraph
 
Reported: 2025-04-23 12:46 UTC by Michael Otto
Modified: 2025-08-26 08:19 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
writer file with 2 links for testing (8.59 KB, application/vnd.oasis.opendocument.text)
2025-05-09 14:56 UTC, fpy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Otto 2025-04-23 12:46:46 UTC
PRECONDITION:
hyperlink in Writer to a website which's name ends in .odt


PROBLEM DESCRIPTION:
the link e.g. 
https://wiki.documentfoundation.org/File:UmsetzungDVHandbuchLibOZeichenvorlagen.odt 
is a website but is opened by Writer

only if the ".odt" is replaced by "%2Eodt": 
https://wiki.documentfoundation.org/File:UmsetzungDVHandbuchLibOZeichenvorlagen%2Eodt
the website is opened by the browser


EXPECTED BEHAVIOR:
if a link named https://xxxxxxx.odt is a website, it shall be opened by the browser
Only a link named file://xxxxxxx.odt shall be opened by Writer?
I'm not sure how to detect if it is a website or a Writer document.


see also "type of hyperlink" in the documentation: 
https://help.libreoffice.org/latest/en-US/text/shared/02/09070000.html
_Internet_
Use the Internet page of the Hyperlink dialog to edit hyperlinks with WWW addresses.
_Document_
Hyperlinks to any document or targets in documents can be edited using the Document tab from the Hyperlink dialog.




Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac
CPU threads: 2; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded
Comment 1 fpy 2025-05-09 14:56:49 UTC
Created attachment 200715 [details]
writer file with 2 links for testing

repro with master / linux / firefox
Comment 2 BogdanB 2025-08-26 04:50:07 UTC Comment hidden (obsolete)
Comment 3 Mike Kaganski 2025-08-26 08:19:41 UTC
(In reply to BogdanB from comment #2)
This has nothing to do with bug 136427 - that one is for custom protocol.

(In reply to Michael Otto from comment #0)
> EXPECTED BEHAVIOR:
> if a link named https://xxxxxxx.odt is a website, it shall be opened by the
> browser

Does your browser know how to show ODT?
This is not a bug.