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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

346 views 20 10
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