Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence mailto link with a hashtag # in the email address

Yuval Greenfield
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 6, 2013

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

0 votes
Daniel Berman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 6, 2014

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>

0 votes
Yuval Greenfield
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 31, 2013

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.

0 votes
Adrien Ragot 2
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 19, 2013

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events