In my instance I need to create custom URL with //// like:
But when I try to create this link i get
Instead. Can some help me with creating proper link?
You use the web link panel for this. Also, if you are trying to link to a local drive (which is what is look like in your example above) you use the file:/// protocol. One things to note is that protocol only works by default with IE. All other browsers require an extension to get the file protocol to work for security reasons. Also if you are linking to a unc path then you would need to put in file slashed. The first three are for the file protocol and the next two would be for the beginning on the UNC path ... if indeed you are trying to use the file protocol. Regardless the Web link panel is where you need to go put in a link like that.
After writing that I realized I'm getting the same thing if I use a protocol other than file. So, I guess I would have to revise my answer to say that you would probably need to create a user macro to do this as Confluence is changing the URL and I don't think there is a way to override that.
You can create user macros in Confluence Administration -> User Macros. Here is an example user macro.
Macro Body Processing:
No macro body
## Developed by: Davin Studer ## Date created: 06/17/2021 ## @param Text:title=Text|type=string|required=true|desc=The text for the anchor. ## @param URL:title=URL|type=string|required=true|desc=The url for the anchor. <a href="$!paramURL">$!paramText</a>
Hello Community! Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events