Recent Topics

1 Dec 13, 2005 06:02    

Hi,

I tried (on 0.9.1) to write a link where the link text included the "at symbol" (@). Instead of producing the regular link and link text, it converted the link into a "mailto" link. How can I avoid this? I thought this was a bug, but everything works fine on the demo blog.

Thoughts?

2 Dec 13, 2005 06:11

Solved it.

Within the edit window down on the right there is an "Auto Links" checkbox that has to be unchecked. It seems like this is still sort of a bug, because it shouldn't override a regular link to make a mailto link.

3 Dec 13, 2005 18:06

Can you please paste the link that was auto-converted wrong?

Just tested "http://user@somewhere.com" and it worked fine, at least in Phoenix.

4 Dec 13, 2005 18:17

Don't put the @ in the a href itself, but in the link text, so for instance, make a link to the SETI@Home project, where one would naturally do something like:

<a href="http://setiathome.berkeley.edu">SETI@Home</a>

and so there's no @ in the web address, but in the link text just before the close anchor.

The result was a mailto link to the nonexistent "SETI@Home" email address. That's another thing, shouldn't mailto links be checked to ensure that they have a domain name AND a TLD? (.com, .edu., .something)?

5 Dec 13, 2005 19:08

Ok, I see.

I've fixed your special case (by matching a not strict domain name) in the e-mail address.

But don't replacing links inside of <a> tags is more difficult. Fortunately I had a callback_on_non_matching_blocks() for a private project already and just made make_clickable() use it.

So, this case is also covered.

I won't commit it for Phoenix-Beta probably, but at least you know that it will work some day as expected.. ;)


Form is loading...