Hi,
I've found the following problem when using Freelinking:
If you have a text that starts with a freelinking tag the module won't match it, for example a node whose text is:
"[[http://www.example.com|Go to example]] and check [[http://www.example.org|this out]]."
Will have just the second freelink (example.org) matched.

I tried to figure out what's going on, and I've found the following:
In freelinking.module, line 441:

$freelinkingregexp = '/[^!](\[\[.+]])/Uu'; // this finds [[links like this]], un-greedily and utf-8

When changed to:

$freelinkingregexp = '/(\[\[.+]])/Uu'; // this finds [[links like this]], un-greedily and utf-8

It works.

Comments

mpcabd’s picture

Sorry for the typo in title :(

Grayside’s picture

Version: 6.x-1.x-dev » 6.x-1.8
Status: Active » Closed (duplicate)

The 1.x-dev version of freelinking no longer uses that code.

By changing the code as you did, you take away the ability to "comment out" the freelink using the exclamation mark. Of course, you could always use [ in place of a square bracket ("[") to dodge around the filter.

If you'd like to try out the 1.x-dev version, it fixes the whitespace problem and retains the comment-out functionality.

Also, duplicate of #581784: Freelinking does not work at the beginning of the text field.