Fix for Twitter link broken contribution id in URL
authorKajan <kajan@vedaconsulting.co.uk>
Thu, 17 Dec 2015 15:04:08 +0000 (15:04 +0000)
committerKajan <kajan@vedaconsulting.co.uk>
Thu, 17 Dec 2015 15:04:08 +0000 (15:04 +0000)
templates/CRM/common/SocialNetwork.tpl

index 3704c9b79bb3ef7a357f7f0d9cf3d66d779e471f..513f8f7bf80edb92fce315342af85fecaf72716d 100644 (file)
@@ -35,7 +35,7 @@
     <div class="crm-fb-tweet-buttons">
         {if $emailMode eq true}
             {*use images for email*}
-            <a href="http://twitter.com/share?url={$url}&amp;text={$title}" id="crm_tweet">
+            <a href="http://twitter.com/share?url={$url|escape:'url'}&amp;text={$title}" id="crm_tweet">
                 <img title="Twitter Tweet Button" src="{$config->userFrameworkResourceURL|replace:'https://':'http://'}/i/tweet.png" width="55px" height="20px"  alt="Tweet Button">
             </a>
             <a href="http://www.facebook.com/plugins/like.php?href={$url}" target="_blank">