Clickable Link in Work Notes to file explorer location?

Travis Michigan
Mega Sage

Is it possible to create a link within a work notes that will open up file explorer to a specific location?  

 

 

 

1 ACCEPTED SOLUTION

Hey @Travis Michigan ,

 

I think this is not possible due to security reasons.

 

ref:

https://stackoverflow.com/questions/12021781/the-right-way-of-setting-a-href-when-its-a-local-file

ChatGPT:

"The href attribute of the anchor tag can only point to resources accessible via URLs, whether they are on the same server or hosted elsewhere on the internet. If you attempt to link to a local file using the file:// protocol, most modern web browsers will not allow it to be opened directly from a web page due to security measures."

 

I could be wrong, but I don't think what you are trying to do is feasible. Instead, maybe upload on to the cloud and share its link?

 

Would like to know if it actually works tho!

 

Thanks

View solution in original post

4 REPLIES 4

siva krishna M2
Tera Guru
Spoiler
Spoiler
Spoiler

Yes we can make links in the work notes by using html to use html code in the worknotes below is the syntax

Syntax:[code]<html code>[code]

 

Ex: type below comment in the worknotes to give YouTube link

[code]<a href="www.youtube.com">YouTube</a>[code]

 

If it helps, please click on like icon and mark it as accepted solution

 

siva krishna M2
Tera Guru

@Travis Michigan wrote:

Is it possible to create a link within a work notes that will open up file explorer to a specific location?  

 

 

Hello @Travis Michigan ,

 

Yes we can make links in the work notes by using html to use html code in the worknotes below is the syntax

Syntax:[code]<html code>[code]

 

Ex: type below comment in the worknotes to give YouTube link

[code]<a href="www.youtube.com">YouTube</a>[code]

 

If it helps, please click on like icon and mark it as accepted solution


 

Travis Michigan
Mega Sage

As an example when I have a browser with an actual file location that works in the browser it ends up looking something like: 

file://path/name/here/

and displays fine when I browse the directory.  But when I try to create a link to it in the work notes with something along the lines of

[code]<a href="file://path/name/here/" target="_blank">The Link to Click on</a>[/code]

it doesn't work as a link, or it doesn't open up quite the same depending on how I try and tweak it I think I'm missing something that maybe is just obvious to others?

Hey @Travis Michigan ,

 

I think this is not possible due to security reasons.

 

ref:

https://stackoverflow.com/questions/12021781/the-right-way-of-setting-a-href-when-its-a-local-file

ChatGPT:

"The href attribute of the anchor tag can only point to resources accessible via URLs, whether they are on the same server or hosted elsewhere on the internet. If you attempt to link to a local file using the file:// protocol, most modern web browsers will not allow it to be opened directly from a web page due to security measures."

 

I could be wrong, but I don't think what you are trying to do is feasible. Instead, maybe upload on to the cloud and share its link?

 

Would like to know if it actually works tho!

 

Thanks