Hello, I'm using confluence self hosted server, and I would like to be able to link UNC path to files hosted on my servers.
I didn't find any solution online for my current version, witch is 6.8.2.
Thank you very much
Hello there!
You should be able to attach files to instance normally, no matter their type:
However, linking a UNC file path does not work in most current browsers. For example:
Security in Depth: Local Web Pages
A few years back, there have been other questions about this here:
Linking to Windows file server share UNC path not working
Create "clickable" link for UNC path
What happens is that the browser automatically blocks the usage of those. For instance, Firefox will "do nothing" when you click it. Chrome will just try to load a page where the link is this:
about:blank#blocked
So, let us know your thoughts on this. Looking forward to your reply!
While it is true that Firefox can prevent it, it does not explain the behavior of Jira.
If creating a simple html page without any javascript but only a simple link alike
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Local File Link</title>
</head>
<body>
<h1>Local File Link</h1>
<p>This is a link to a local file:</p>
<a href="file:///D:/Pictures/Screenshots/2024-06-11_13-36-07.png">Link to local file</a>
</body>
</html>
I can convince Firefox to open the link.
If you look at the code of Jira it looks different:
<a data-testid="link-with-safety" href="file:///D:\Pictures\Screenshots\2024-06-11_13-36-07.png" title="file:///D:\Pictures\Screenshots\2024-06-11_13-36-07.png" data-renderer-mark="true" class="css-tgpl01">A screenshot</a>
In addition there is a event linked to "click"
So it is ACTIVE coding from Atlassian side which eventually prevents us from putting links to local files opening on click.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.