Item1200: Unexpected result when link text contains email address
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:email@example.com][text including a firstname.lastname@example.org email address]]
the result is not as expected. The result is in three parts:
Lots of text including a email@example.com email address
(the source for which looks like
<a href="mailto:firstname.lastname@example.org">Lots of text including a <a href="mailto:email@example.com">firstname.lastname@example.org</a> email address</a>
- the expected link Lots of text including a
- a separate link for email@example.com
- the literal (unlinked ) string email address
Reproducible here at TWiki./org: v2.0.1
- 12 Jan 2009
I'm inclined to agree with Vicki on this one.
- 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.
- 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.
- 22 Sep 2011