How to link local folder

Nils Lange March 4, 2013

Hello,

I'm using Jira and try to add a link to a local folder in a text-/commentbox like this:

{html}
<a href="file://LocalDisk:\Folder\Folder\Folder\">DisplayName</a>
{html}

It did not work. Either IE9 or FF18 open an explorer.

However when I copy the link and insert it to a new Tab -> IE9 opens an new Explorer Window and FF18 shows the folder content in the Tab.

Is there an other option to open a local folder or what is my mistake.

Thanks

5 answers

1 accepted

1 vote
Answer accepted
Torsten Weck March 4, 2013

Due to security concerns, all Browsers disallow linking from (remote) website to local content. Thats the reason why they show the content only if you manually enter the path. However you can override this behaviour for most browsers (but i would not recommend it).

You could instead just use the Attachment function or make the files available via another webserver ( http://en.wikipedia.org/wiki/WebDAV )

also take a look at this Knowledgebase Article: https://confluence.atlassian.com/display/JIRAKB/Can't+Link+to+Local+Files+from+within+JIRA

Andrew Wright April 11, 2019

Slash forward  to settings restored in the future backslash is a non- strategy 

0 votes
Christian Czaia _Decadis AG_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2013
0 votes
dleng
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2013

You gotta be using relative paths, e.g. <a href="/folder/folder/">

I'm not sure if you could access entire folders like this in your webserver, but you could probably create a link that links back to jira homepage via <a href="/../../jira">

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 4, 2013

I'm not sure we can help until we understand what you mean by "local folder"?

The url you have given, with file:// will cause a browser to open the file system on the machine it is running on. You have configured IE9 and FF18 to try to open files with Explorer rather than internally.

I suspect what you actually mean is not "local folder", but "folder on a web server" (One reason I assume that is that you simply cannot assume that your "local folder" will exist on a client machine). If that is what you mean to do, then you need to be running something that will expose that server directory.

Nils Lange March 4, 2013

I'm trying to link a folder on my local hard disk, everybody else of my team should have this folder too. So the link should open the folder on the computer of everybody else

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 4, 2013

That sounds a little contradictory to me - "on my local hard disk" and "folder on computer of everybody else".

To clarify the requirements, I'm afraid I need to ask more questions:

1. Which one is it? Do you need to open the directory on your hard disk, and everyone opens it on your machine? Or do you mean everyone tries to open the same local path, irrespective of whether it's there, or it's contents?

2. When you say "open", what do you need to open the directory with?

Surya Saripalli August 29, 2018

Is there a way where i can open the local path or its contents in  my computer itself(file browser/windows explorer) when the user clicks on the link?

Everyone can access the link and open it in their machine by clicking on the network link. ?

Surya Saripalli August 29, 2018

to be more clear : I have a network group link that the user attaches to a ticket. 

If i am able to access the network group link and i am going over the ticket, can i click on the link the user put in my machine and access the network group link. Any help is appreciateD?

0 votes
codelab expert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2013

It is not possible to show the content of a directory using an internet browser. They don't know what to do with this information. If you want to open a file explorer you have to use vbscript in your html code.

Nils Lange March 4, 2013

do you have a smal example, how to do this

Like meno saba likes this
Michael Tropper July 25, 2016

This is not true as you can see below ... using "file:///G:/BU%20HP%20SALESINFO/" in browser path gives this:

image2016-7-25 16:31:10.png

Mohan Avvaru April 10, 2019

It will open local /network folders with this link

System.Diagnostics.Process.Start("explorer.exe", (@"folderpath"commandarg[1].Trim()));

but when I host this page it is not opening folder.

Suggest an answer

Log in or Sign up to answer