[Issue] LibreOffice follow link to open document does not work

Discuss the word processor
Post Reply
kocj
Posts: 25
Joined: Mon Aug 20, 2018 8:19 am

[Issue] LibreOffice follow link to open document does not work

Post by kocj »

Hello community,

In my documents i have several hyper links that link to sections in other documents. If a document with the section is closed and i ctrl click the link the document opens and jumps me to the section. If the document is open the link does not react. This was working before.

I use Libereoffice 24.2.3 on Debian 12 bookworm.

Best
Last edited by Hagar Delest on Sat May 04, 2024 6:05 pm, edited 1 time in total.
Reason: tagged issue.
Libreoffice on Debian
Bill
Volunteer
Posts: 8937
Joined: Sat Nov 24, 2007 6:48 am

Re: LibreOffice follow link to open document does not work

Post by Bill »

Your signature shows two old versions of LO. Does "working before" mean it was working in the old versions, but not LO 24.2.3?
AOO 4.1.14 on Ubuntu MATE 22.04
kocj
Posts: 25
Joined: Mon Aug 20, 2018 8:19 am

Re: LibreOffice follow link to open document does not work

Post by kocj »

Thank you Bill,

Yes, it was working at some point, i cannot remember exactly when it stopped. Does it work for you?
Libreoffice on Debian
User avatar
Hagar Delest
Moderator
Posts: 32687
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: LibreOffice follow link to open document does not work

Post by Hagar Delest »

I just tried with links to tables instead of sections and it works fine with LO 24.2 on xubuntu 24.04. The only thing is that if the document is opened, the cursor indeed jumps to the correct place but since the document being in the background, you don't see it until you switch to the target document.
LibreOffice 24.2 on Xubuntu 24.04 and 7.6.4.1 portable on Windows 10
kocj
Posts: 25
Joined: Mon Aug 20, 2018 8:19 am

Re: LibreOffice follow link to open document does not work

Post by kocj »

Thank you Hagar,

I can indeed confirm the same behaviour on as you describe, the cursor jumps to the correct place, but the document remains in background. I am sure that before, pressing the link jumped me also to an open document to the correct place in the document, as default. I have build my whole documents like this.

Is there any setting where i could enable this again?
Libreoffice on Debian
User avatar
Hagar Delest
Moderator
Posts: 32687
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: LibreOffice follow link to open document does not work

Post by Hagar Delest »

I don't know if the behavior is managed by the application or by the desktop environment.
Will try tomorrow on my Windows 10 machine (if nobody did in the mean time).
Xubuntu runs on XFCE, what is your desktop environment?
LibreOffice 24.2 on Xubuntu 24.04 and 7.6.4.1 portable on Windows 10
JeJe
Volunteer
Posts: 2800
Joined: Wed Mar 09, 2016 2:40 pm

Re: LibreOffice follow link to open document does not work

Post by JeJe »

For me, on Windows 10 a hyperlink to a section in another document brings it to the front if the document is already opened in LO.

In LO it works even if the Window is minimized (that doesn't in OO)

Edit:
A workaround might be to assign a macro to the trigger hyperlink event of each hyperlink to bring the target window to front but that would be a lot of effort to workaround what sounds like an OS-specific bug.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
kocj
Posts: 25
Joined: Mon Aug 20, 2018 8:19 am

Re: LibreOffice follow link to open document does not work

Post by kocj »

I am on gnome, libreoffice is form backports.
Libreoffice on Debian
kocj
Posts: 25
Joined: Mon Aug 20, 2018 8:19 am

Re: LibreOffice follow link to open document does not work

Post by kocj »

I have now tried with the official appImages both fresh and still. The behaviour is the same, if a document is closed, ctrl click opens the document and jumps the cursor to the right section. If the document is opened already the the cursor jumps to the right section but the document stays in the background.

That leads me to assume that is is at least not a debian specific issue.

Where should i fill a bug report for this?
Libreoffice on Debian
User avatar
LastUnicorn
Posts: 571
Joined: Sat Mar 29, 2008 2:41 am
Location: Scotland

Re: LibreOffice follow link to open document does not work

Post by LastUnicorn »

LibreOffice (Still) 7.6.5.2 (x64) Fully installed to system on Windows 10 and Windows 11
LibreOffice (Still) Portable 7.6.5.2 (x86) [PortableApps] on Windows 10
JeJe
Volunteer
Posts: 2800
Joined: Wed Mar 09, 2016 2:40 pm

Re: LibreOffice follow link to open document does not work

Post by JeJe »

A macro to bring to document to the front on the hyperlink pressed event would be something like this, though I can't test it as I don't have the problem on my machine. (It it works it would need another macro to set the macro to the hyperlink pressed event of all they hyperlinks in a document as doing that manually would be tedious)

Hopefully there'll be a fix in response to your bug report and reverting to a previous version in the meantime will solve the issue for you.

Code: Select all

'looks through all the open documents for one with a document url 
'which matches the document part of the hyperlink url
'and brings it to the front if found
Sub HyperlinkPressed()
dim url,en,c 
on local error goto hr
url = thiscomponent.currentcontroller.viewcursor.hyperlinkURL
en =stardesktop.components.createenumeration
do while en.hasmoreelements
c= en.nextelement
if instr(url, c.url) =1 then
c.currentcontroller.frame.containerwindow.tofront
exit do
end if
loop
hr:
End Sub
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
kocj
Posts: 25
Joined: Mon Aug 20, 2018 8:19 am

Re: LibreOffice follow link to open document does not work

Post by kocj »

Libreoffice on Debian
Post Reply