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:

<a>file.doc</a>

How can I prevent Confluence from doing so?

2 answers

1 accepted

Accepted Answer
1 vote

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:

https://confluence.atlassian.com/doc/html-macro-38273085.html

Thx.

Andreas

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,

Andreas

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 11, 2018 in Confluence

What are your project planning tips?

Hello Community,  Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...

258 views 1 4
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