Bug 140479 - PDF export error: hyperlink to document part assigned to shape in Draw/Impress results in incorrect link
Summary: PDF export error: hyperlink to document part assigned to shape in Draw/Impres...
Status: RESOLVED DUPLICATE of bug 100893
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
5.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-17 15:59 UTC by steiny0909
Modified: 2024-03-14 14:21 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample ODP, but the hyperlink has been converted to an interaction after save-reload (13.61 KB, application/vnd.oasis.opendocument.presentation)
2024-03-07 11:35 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description steiny0909 2021-02-17 15:59:22 UTC
Description:
hyperlink assigned to shape after exporting does not work points to local file 
originally pointint to second page but after opening it is fixed to HDD

Steps to Reproduce:
1.open new file
2. make document with 2 pages 
3. create shape 
4. hit ctrl K to assign hyperlink for the same 2nd page
5. export to pdf
6. open in edge browser
7. after hitting hyperlinked shape it directs me to 
file:///C:/Users/xxxx/OneDrive/Desktop/%23Page%202

Actual Results:
file:///C:/Users/xxxx/OneDrive/Desktop/%23Page%202

Expected Results:
to land on 2nd page in the same document


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: DrawingDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no
Comment 1 Buovjaga 2022-03-03 14:58:46 UTC
Reproduced.

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 04f9a8957c04b8c5abaa58140328d2c83381f4ff
CPU threads: 2; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: fi-FI (fi_FI); UI: en-US
Calc: threaded Jumbo
Comment 2 Stéphane Guillou (stragu) 2024-03-07 11:35:22 UTC
Created attachment 193014 [details]
sample ODP, but the hyperlink has been converted to an interaction after save-reload

Reproduced on Linux as well, in Impress:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 98c42f7e961e77d7f1c02d53862e4e78ecd07653
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

I used Insert > Hyperlink > Document to link to the second slide. When exported, the PDF has an active link on the shape, but it (re)opens the file itself.

Interestingly, when saving and reloading, the shape has no hyperlink anymore, but it has been converted to an Interaction instead. Exporting to PDF then doesn't result in any link whatsoever.
See also bug 156159.
Comment 3 Stéphane Guillou (stragu) 2024-03-07 12:02:52 UTC
- In 5.0, no hyperlink could be applied to the object (it was inserted as a separate object)
- From 5.1.0.3 to 7.3.0.3, the PDF would end up with an invalid link of the type "path/to/file/#page2" or "./#page2
- From 7.4.0.3 to 24.2.1, the link is simply "#page2", and it opens my file browser in the current directory (tested Okular and Evince)
- In current trunk build, the link is "filename#page2" and reopens the file (with Okular and Evince) or does not act as a link (with Firefox)
Comment 4 Stéphane Guillou (stragu) 2024-03-07 14:10:28 UTC
Already tracked in bug 126096.
Comment 5 Stéphane Guillou (stragu) 2024-03-07 14:10:55 UTC

*** This bug has been marked as a duplicate of bug 126096 ***
Comment 6 Stéphane Guillou (stragu) 2024-03-14 14:21:21 UTC

*** This bug has been marked as a duplicate of bug 100893 ***