I have an rss feed added from google news. When I share this using twitter or facebook, a short url (Eg: http://tinyurl.com/7ombpxn) is generated. But when clicked, this url shows an invalid url error from google. Other RSS feeds that I take from blogs or sites directly do not produce this error.
Are there some settings that I am missing? When shared on twitter, the tinyurl points a t.co url which in turn points to a google url.
Comments
Comment #1
js_kiran commentedThe page where 'invalid error' is displayed works when I replace amp; with '&'.
Comment #2
js_kiran commentedA similar issue seems to be mentioned here http://drupal.org/node/955820 for version 6.x 1.1
Comment #3
js_kiran commentedThe below two changes helped me
1) In this file profiles\managingnews\modules\custom\simpleshare\simpleshare.module
Add this line
$url = htmlspecialchars_decode($url);just before
$api = "http://tinyurl.com/api-create.php?url={$url}";2)In this file profiles\managingnews\modules\custom\simpleshare\views\simpleshare_handler_field_link.inc
Add this line
$url = htmlspecialchars_decode($url);after
$url = strip_tags($url);