Linking from Confluence page to file on network

When entering a link to a local file like C:\temp\file.doc I enter the following code:

<a href="file://C:\temp\file.doc">file.doc</a>

However after saving in Confluence the Link looks like this:


How can I prevent Confluence from doing so?

2 answers

1 accepted

1 vote
Accepted answer

Hi Andreas

Use the HTML macro and the link will remain as a well-formed link to a file location.

Hi Rob, that sounds good, do you refer to this macro:



Hi Andreas,

If you're using the server version, yes.

If you're using the Cloud version (or for anyone who reads this question who is using the Cloud version) then the native HTML macro is one of the restricted Cloud functions due to security issues, but this add-on will give you basically the same functionality.  It is paid, but it's very cheap.

Thank you Rob, this works perfectly. We're on the server version.

All the best,


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,465 views 114 8
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you