Item1200: Unexpected result when link text contains email address
Priority: Normal
Current State: Closed
Released In: 1.1.4
Target Release: patch
I don't think the link text (on the right-hand side) should autolink.
If you use something like
[[mailto:foo@bar.com][text including a foo@bar.com email address]]
the result is not as expected. The result is in three parts:
Lots of text including a foo@bar.com email address
(the source for which looks like
<a href="mailto:foo@bar.com">Lots of text including a <a href="mailto:foo@bar.com">foo@bar.com</a> email address</a>
- the expected link Lots of text including a
- a separate link for foo@bar.com
- the literal (unlinked ) string email address
Reproducible here at TWiki./org: v2.1.8
--
TWiki:Main/VickiBrown - 12 Jan 2009
I'm inclined to agree with Vicki on this one.
--
CrawfordCurrie - 04 Mar 2009
Changing the rendering order - processing square bracket links before email autolinking resolves the issue. The Square-bracket processing auto-escapes email addresses inside the link text. Fixed and added a unit test. Only committed to trunk for now - changing rendering order can be risky.
--
GeorgeClark - 21 Sep 2011
That didn't last long - got carried away with cherry-picking so this is applied to release 1.1. branch as well. All the rendering tests pass, so leaving it applied.
--
GeorgeClark - 22 Sep 2011