[Solved] LibreOffice follow link to open document does not work
							
						[Solved] LibreOffice follow link to open document does not work
		
													
						
			
			
			
			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
			
			
													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 kocj on Thu Sep 12, 2024 1:05 am, edited 2 times in total.
									
			
						
							Libreoffice on Debian
			
						Re: LibreOffice follow link to open document does not work
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
			
						Re: LibreOffice follow link to open document does not work
Thank you Bill,
Yes, it was working at some point, i cannot remember exactly when it stopped. Does it work for you?
			
			
									
						
							Yes, it was working at some point, i cannot remember exactly when it stopped. Does it work for you?
Libreoffice on Debian
			
						- Hagar Delest
 - Moderator
 - Posts: 33486
 - Joined: Sun Oct 07, 2007 9:07 pm
 - Location: France
 
Re: LibreOffice follow link to open document does not work
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 25.2 on Linux Mint Debian Edition (LMDE Faye) and 24.8 portable on Windows 11.
			
						Re: LibreOffice follow link to open document does not work
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?
			
			
									
						
							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
			
						- Hagar Delest
 - Moderator
 - Posts: 33486
 - Joined: Sun Oct 07, 2007 9:07 pm
 - Location: France
 
Re: LibreOffice follow link to open document does not work
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?
			
			
									
						
							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 25.2 on Linux Mint Debian Edition (LMDE Faye) and 24.8 portable on Windows 11.
			
						Re: LibreOffice follow link to open document does not work
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.
			
			
									
						
							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)
			
						Re: LibreOffice follow link to open document does not work
I am on gnome, libreoffice is form backports.
			
			
									
						
							Libreoffice on Debian
			
						Re: LibreOffice follow link to open document does not work
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?
			
			
									
						
							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
			
						- LastUnicorn
 - Posts: 798
 - Joined: Sat Mar 29, 2008 2:41 am
 - Location: Scotland
 
Re: LibreOffice follow link to open document does not work
LibreOffice 25.8.1.1 (x64) installed to Windows 11 Pro. 25H2
Apache OpenOffice Portable 4.1.15 [Portable Apps]
For Java I use Adoptium Temurin JRE LTS Releases.
			
						Apache OpenOffice Portable 4.1.15 [Portable Apps]
For Java I use Adoptium Temurin JRE LTS Releases.
Re: LibreOffice follow link to open document does not work
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.
			
			
									
						
							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)
			
						Re: LibreOffice follow link to open document does not work
I have filled a bug report here https://bugs.documentfoundation.org/sho ... ?id=160933
			
			
									
						
							Libreoffice on Debian
			
						Re: [Issue] LibreOffice follow link to open document does not work
It is fixed since libreoffice 24.8
			
			
									
						
							Libreoffice on Debian