When you enter the value example.com in the field the node will show display http://example.com but the anchor tag will not actually include the http://

Here is what it outputs:

<div class="field-item even"><a href="/example.com">http://example.com</a></div>

If you manually enter the http:// the link will work properly.

Comments

wabs’s picture

Same here

leguy’s picture

I'm using Drupal 7.7 and can also confirm this bug with the 7.x-1.0-alpha3 release

paulmckibben’s picture

Status: Active » Needs review
StatusFileSize
new522 bytes

I also had the same problem, so I made a change to the code. I've attached a patch. Let me know if it works for others.

Thanks,
Paul

timofey’s picture

Aha! I'm right in time for the patch!! :P

I can confirm patch #3 works great! Thanks!

dqd’s picture

Status: Needs review » Fixed

@ all: patch works, thanks for your contribution paulmckibben, but ...

By testing it again with latest --dev, it seems, that the issue has been mostly fixed anyway.
Please use latest 7.x-1.x-dev of link module from now. It is strongly recommended to use it rather than alpha3, since in latest --dev push are already some of known issues fixed (html tags f.e. with static title, http:// conversion, www. conversion, etc) and please go from there to report back for better overview and any leftovers.

Any reports and patches are much much appreciated, since we have still a lot to catch up to get right for final D7 release. But please go from 7.x-1.x-dev.

I am assigned to the link module maintainance since yesterday to push things forward. more infos why are here: #1269718: Blockers to a 7.x-1.0 release?

thanks for all your contribution and understanding.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.