• We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      Hi
      In our environment we still use allot of network paths Links:
      Expl Fodler: "N:\2_Kunden\22_Kunden\227_Prozesse 6 Arbeitsanweisungen"
      Expl File: "N:\2_Kunden\22_Kunden\227_Prozesse 6 Arbeitsanweisungen\Prozess Vertrag.doc"

      Where the N-Drive is a Network-Drive in our Company.
      It would be nice to have a simple way to put such Links into the Confluence pages. And when clicking on it the Folder or the File on the Network-Drive gets opened directly.
      In the moment I have to put: "file://N:/2_Kunden/22_Kunden/227_Prozesse 6 Arbeitsanweisungen"
      You loose time as you have to replace the \ with / and put file:// before
      A new setting in the Link Window would be nice to say: this is a network path and the software automaticaly converts the normal path to a url path.

            [CONFSERVER-32134] Internal Network Link

            GMK added a comment -

            In the meantime you might try using workarounds proposed in following KB/Community discussion.

            1. # Cannot link to local files from within Confluence - Atlassian Documentation
            2. Confluence: How to place a link to a file on a ser...

            GMK added a comment - In the meantime you might try using workarounds proposed in following KB/Community discussion. # Cannot link to local files from within Confluence - Atlassian Documentation Confluence: How to place a link to a file on a ser...

            Hello - thank you for sending in this suggestion! Unfortunately, we do not have any plans to implement this in the foreseeable future. In order to set expectations correctly, we're closing this request now. If you'd like to describe more how this would help in your own use of Confluence, we may be able to provide better guidance.
            Thanks again for your idea, and please feel free to submit more!

            Regards,
            Confluence Product Management

            Simon Tan (Inactive) added a comment - Hello - thank you for sending in this suggestion! Unfortunately, we do not have any plans to implement this in the foreseeable future. In order to set expectations correctly, we're closing this request now. If you'd like to describe more how this would help in your own use of Confluence, we may be able to provide better guidance. Thanks again for your idea, and please feel free to submit more! Regards, Confluence Product Management

            Hallo Jan-Peter
            Thanks for your answer, it helped me. I tried it out and in IE it works fine. For the other browsers till now I couldn't test it.
            But for now its fine
            Best regards,
            Marcel

            IAZI IT-Support added a comment - Hallo Jan-Peter Thanks for your answer, it helped me. I tried it out and in IE it works fine. For the other browsers till now I couldn't test it. But for now its fine Best regards, Marcel

            Hi Marcel,

            we had the same problem and solved it with a user macro. The

            {filelink}

            macro takes a filepath or directory copied from clipboard or entered manually & replaces the backslashes with forward slashes. A well known drive letter is replaced with an UNC path (In our case this makes files links compatible for VPN users who don't have the drive mapping).

            As file link handling is so browser dependend, I doubt that there will be a solution directly from Atlassian...

            ## Macro title: filelink
            ## Macro has a body: N
            
            ## @param FilePath:title=Filepath|type=string|required=true|desc=A file (N:\Test\test.txt) or a directory (N:\Test). Driveletters and UNC-Path (\\Server\Share\Path\File.txt) are supported.
            ## @param Linktext:title=Linktext|type=string|required=false|desc=If left empty, filepath will be used
            
            ## Determine UserAgent via request)
            #set($useragent = $req.getHeader("User-Agent"))
            
            #if($useragent.contains("Edge"))
             #set($browser = "ie")
            #elseif($useragent.contains("Chrome"))
             #set($browser = "chrome")
            #elseif($useragent.contains("Firefox"))
             #set($browser = "firefox")
            #elseif($useragent.contains("MSIE"))
              #set($browser = "ie")
            #else
              #set($browser = $useragent)
            #end
            
            ## Replace drive N: with UNC path & backslash with forward slash
            #set($url = $paramFilePath.replaceAll("\\\\/","/").replace("N:","//YOURSERVER/YOURSHARE"))
            
            ## Set link text, if filepath. Debug handling
            #if($paramLinktext)
              #if($paramLinktext == '')
                #set($linktext = $url)
              #elseif($paramLinktext == 'debug')
                #set($linktext = $useragent)
              #else
                #set($linktext = $paramLinktext)
              #end
            #else
              #set($linktext = $url)
            #end
            
            #if(!$url.startsWith('/') && !$url.startsWith('\\'))
              ## Show remark, if drive is not N:
              #set($tooltip = "The drive letter used might not be mapped for each user. Consider using an UNC-Path '\\SERVER\SHARE\...'")    
            #else
              #set($tooltip = "This link might need the installation of certain browser addons and/or some special configuration.'")
            #end
            <a class="external-link link-tooltip" original-title="$tooltip" rel="nofollow" href="file:///$url">$linktext</a>
            
            ## For debugging remove comment marks
            ##<p>$browser</p>
            ##<p>$useragent</p>
            ##<p>$url</p>
            ## Example User-Agent String:
            ## IE:	Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C)
            ## Edge: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240
            ## Firefox: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0
            ## Chrome: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.125 Safari/537.36
            

            Open filesystem links in browsers is a security related feature. It is possible with all three major browsers BUT you will need addons for Chrome & Firefox (For Chrome even an external helper process running). With IE you will need to add your domain to the trusted sites configuration.

            Best regards,

            Jan-Peter

            Jan-Peter Rusch added a comment - Hi Marcel, we had the same problem and solved it with a user macro. The {filelink} macro takes a filepath or directory copied from clipboard or entered manually & replaces the backslashes with forward slashes. A well known drive letter is replaced with an UNC path (In our case this makes files links compatible for VPN users who don't have the drive mapping). As file link handling is so browser dependend, I doubt that there will be a solution directly from Atlassian... ## Macro title: filelink ## Macro has a body: N ## @param FilePath:title=Filepath|type=string|required= true |desc=A file (N:\Test\test.txt) or a directory (N:\Test). Driveletters and UNC-Path (\\Server\Share\Path\File.txt) are supported. ## @param Linktext:title=Linktext|type=string|required= false |desc=If left empty, filepath will be used ## Determine UserAgent via request) #set($useragent = $req.getHeader( "User-Agent" )) # if ($useragent.contains( "Edge" )) #set($browser = "ie" ) #elseif($useragent.contains( "Chrome" )) #set($browser = "chrome" ) #elseif($useragent.contains( "Firefox" )) #set($browser = "firefox" ) #elseif($useragent.contains( "MSIE" )) #set($browser = "ie" ) # else #set($browser = $useragent) #end ## Replace drive N: with UNC path & backslash with forward slash #set($url = $paramFilePath.replaceAll( "\\\\/" , "/" ).replace( "N:" , " //YOURSERVER/YOURSHARE" )) ## Set link text, if filepath. Debug handling # if ($paramLinktext) # if ($paramLinktext == '') #set($linktext = $url) #elseif($paramLinktext == 'debug' ) #set($linktext = $useragent) # else #set($linktext = $paramLinktext) #end # else #set($linktext = $url) #end # if (!$url.startsWith( '/' ) && !$url.startsWith( '\\' )) ## Show remark, if drive is not N: #set($tooltip = "The drive letter used might not be mapped for each user. Consider using an UNC-Path '\\SERVER\SHARE\...' " ) # else #set($tooltip = "This link might need the installation of certain browser addons and/or some special configuration.'" ) #end <a class= "external-link link-tooltip" original-title= "$tooltip" rel= "nofollow" href= "file: ///$url" >$linktext</a> ## For debugging remove comment marks ##<p>$browser</p> ##<p>$useragent</p> ##<p>$url</p> ## Example User-Agent String : ## IE: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C) ## Edge: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240 ## Firefox: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0 ## Chrome: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.125 Safari/537.36 Open filesystem links in browsers is a security related feature. It is possible with all three major browsers BUT you will need addons for Chrome & Firefox (For Chrome even an external helper process running). With IE you will need to add your domain to the trusted sites configuration. Best regards, Jan-Peter

            Sam Hasler added a comment -

            Duplicate of CONF-24665 or CONF-14393?

            Sam Hasler added a comment - Duplicate of CONF-24665 or CONF-14393 ?

              Unassigned Unassigned
              23496c0b482e IAZI IT-Support
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: