My issue is similar to this one but I have one more issue that has not been resolved.
http://drupal.org/node/1309658
I have also patched the link module with this patch
http://drupal.org/files/1309658-query-fragment-missinng-from-token-51686...
I have urls that are now working properly as far as the query and fragment not being trimmed
My url has a query in it -
here is the url I am using - which appears fine in the field -
http://www.facebook.com/permalink.php?story_fbid=418032621562946&id=132354106797467
But when the link field is used anywhere it adds amp; after all the &
So now everywhere on the site
The url above appears as
http://www.facebook.com/permalink.php?story_fbid=418032621562946&id=132354106797467
As you can see it adds the amp;
It seems like its not encoding the &s properly ?
Please help !
I can provide any info that might be helpful thanks !!!!
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | link-amp-added-url-1688420-15.patch | 438 bytes | acorso |
Comments
Comment #1
naeluh commentedComment #2
naeluh commentedComment #3
naeluh commentedIs there any info I can provide that could aide in answering this question ?
I am really stumped as to why it would do this ?
thanks !
Comment #4
jcfiala commentedYeah, well, that's the problem with that patch. It breaks the & character in urls, I expect. I'm starting on testing this, but I wouldn't recommend the patch.
Comment #5
jcfiala commentedAlright - I'm going to close this ticket.
What you should do is download the 7.x-1.x-dev version instead, which will prevent this problem.
(I'm not certain if you might need to go back and re-edit nodes that got this & problem, but you should check after updating link.)
Comment #6
jcfiala commentedAnd, yeah, forgot to actually _close_ the ticket.
Comment #7
naeluh commented@jcfiala
this worked perfect thanks!
Comment #8
naeluh commentedI am starting to have this problem again not sure why its happening again can someone take a look ?
My facebook links are producing the amp; after the & for my links ?
I get this
http://www.facebook.com/permalink.php?story_fbid=103293356507866&id=107869712591332Instead of this
http://www.facebook.com/permalink.php?story_fbid=103293356507866&id=107869712591332which is the correct url
thanks
Comment #9
naeluh commentedComment #10
naeluh commentedPlease help if you can I dont know why it is encoding this way -
here is my example all the facebook links that include & in the url are encoded improperly
http://client.theconfluencegroup.com/dobel_report
thanks very much
Comment #11
davvid commentedI have the same issue with dev version as well.
I fixed the problem temporary with js but looking forward to do it right.
Comment #12
naeluh commented@davvid Hey how did you do that I am interested ?
Comment #13
naeluh commentedOk so I can did some lookin around my server and I can confirm that the dev branch does correct this problem
For some reason my server had cache an old version of the code and was running the 1.0 branch
If you have this issue please update your module to the dev branch - 7.x-1.0+28-dev
Comment #14
davvid commented@naeluh I just replaced '& amp;' with '&' if there are any in url.
I hope update to new dev version will solve this problem.
Comment #15
acorso commentedFor those, who may have dependencies prohibiting them from upgrading the Link module, I have fixed this issue for Link v1.0 with the following patch.