Hi there,

First of all thanks for this fantastic module.
I have an issue with how the links are displayed when a node is created.
When I am creating a node with several fields, and I enter an affiliate link in the ‘Link’ field, once the node is saved the URL displayed is different from the URL introduced.

In the example below, when the link is displayed the “.” are changed by “_”. But if I click edit, the URL in the link field is correct.

This is the link that I introduced in the ‘Link’ field:

http://ecs-es.kelkoo.es/ctl/go/sitesearchGo?.ts=1338833010331&.sig=qP9GX...

And this is the one displayed in the node:

http://ecs-es.kelkoo.es/ctl/go/sitesearchGo?_ts=1338833010331&_sig=qP9GX...

As you can appreciate, the full point after the question mark (…sitesearchGo?_ts=1338833010331…) and after the & (…&_sig=qP9GXeEFH6syBzwmzYkxmsvp1EI…), have been changed by an underscore symbol.
As I said before, if I click “edit”, the link in the field is the correct one (with the “.” Instead of the “_”), but when the node is displayed, the link is changed (and so I cannot introduce any affiliate product).

Please let me know if you need more information (is my first issue in drupal)

Thanks in advance for your time and again for this module!

Fernando

CommentFileSizeAuthor
#9 content of link.module.txt40.43 KBferkoru
#4 Link-1616752-4.patch941 bytesJimmed

Comments

saralibrarian’s picture

Same thing is happening to me, though it replaces my "+" with underscores in the Link output. This is happening in the full node -- not a view working with fields in which I've altered the output.

ferkoru’s picture

Priority: Normal » Major
ferkoru’s picture

Please, can someone help with this?
The affiliate links don't work... :(

Thanks!!

Jimmed’s picture

Status: Active » Needs review
StatusFileSize
new941 bytes

Please see the attached patch, which I believe will solve the issue. The fault lies in the use of PHP's in-built parse_str() method.

ferkoru’s picture

Hi Jimmed,

Thanks for your answer.
When I applied the patch the following notice was showed:

Notice: Undefined offset: 1 en _link_parse_str() (line 1181 from C:\wamp\www\xxxxxxx\sites\all\modules\link\link.module).

Cheers,

ferkoru’s picture

A small modification of Jimmed patch fixed the problem. :)

I didn't delete this line
- parse_str($query, $query_array);
Because deleting it the URL is cut after '?'

Cheers Jimmed!

ferkoru’s picture

Status: Needs review » Closed (fixed)
dmetzcher’s picture

Version: 7.x-1.0 » 7.x-1.1
Status: Closed (fixed) » Needs review

Was this patch committed to the module? I'm still having this issue without the patch applied and with the latest release version (1.1) of the Link module.

ferkoru’s picture

StatusFileSize
new40.43 KB

Hi dmetzcher,

I updated the link module and happened the same problem again.
Try to replace the content of the link.module with the content I've attached in the .txt

It worked for me.

Cheers,

grassriots’s picture

This crept up on me today after updating last night.
Thanks for posting this. Testing now.

lunk rat’s picture

I also have this issue, and before I patch production, I am wondering if the fix will be merged soon. Thank you!

jcfiala’s picture

Status: Needs review » Needs work

Well, here's how it goes:

1) I need a real patch. Not just "replace your whole module with this file." With that, the status would be moved to 'needs review.'

2) I need some folks to try the patch and report that it works fine for them. Said folks would then move the patch to 'reviewed & tested by the community".

And then I'd look it over, kick the tires, and merge it in!

taran2l’s picture

dotbjorn’s picture

I've tested the above patch and am using in production, as our editors were having problems with this bug. Seems good to me.

jcfiala’s picture

Issue summary: View changes
Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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