Confluence mailto link with a hashtag # in the email address

Right now I get an invalid markup error or the link just isn't clickable when I add "mailto:#myteam@company.com" as a link to the wiki. Is there a way to work around this?

3 answers

Exact. I've even tried html-escaping and url-escaping but it doesn't change anything. You should check whether there's already a bug for that in Atlassian's bugtracker for Confluence.

I'm not at work but when I am I'll try the suggested workaround from https://jira.atlassian.com/browse/CONF-24880?jql=text%20~%20%22mailto%22"you can replace # with %23 encoding through some Javascript". Though I don't know if just putting %23 will be doubly escaped.

EDIT - sadly escaping didn't work.

I encountered this same problem, there is a JIRA for it. https://jira.atlassian.com/browse/CONF-24880

I however was able to workaround by creating a custom User Macro:

## @paramName:title=email|type=string|required=true|desc=Email Address

## @paramLink:title=text|type=string|desc=Link Text

#set ($url = $paramName)

#set ($linktext = $paramLink)

#if (!$linktext)

#set ($linktext = $url)

#end

<a href =mailto:$url>$linktext</a>

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...

2,894 views 27 12
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