Don't overescape links in pledge tab
authorBradley Taylor <hello@brad-taylor.co.uk>
Thu, 14 Apr 2022 21:03:01 +0000 (22:03 +0100)
committerBradley Taylor <hello@brad-taylor.co.uk>
Thu, 14 Apr 2022 21:03:01 +0000 (22:03 +0100)
templates/CRM/Pledge/Page/Tab.tpl

index 98e5a5c622290d449ec1f9111304a13609b7b6e8..4b1124c943893cf28425f0d89af9835dfaa42e55 100644 (file)
     {ts 1=$displayName}Pledges received from %1 since inception.{/ts}
     {if $permission EQ 'edit'}
      {capture assign=newContribURL}{crmURL p="civicrm/contact/view/pledge" q="reset=1&action=add&cid=`$contactId`&context=pledge"}{/capture}
-     {capture assign=link}class="action-item" href="{$newContribURL}"{/capture}
-     {ts 1=$link}Click <a %1>Add Pledge</a> to record a new pledge received from this contact.{/ts}
+     {ts 1=$link}Click <a class="action-item" href="{$newContribURL|smarty:nodefaults}">Add Pledge</a> to record a new pledge received from this contact.{/ts}
     {/if}
 </div>
 
 {if $action eq 16 and $permission EQ 'edit'}
     <div class="action-link">
-       <a accesskey="N" href="{$newContribURL}" class="button"><span><i class="crm-i fa-plus-circle" aria-hidden="true"></i> {ts}Add Pledge{/ts}</a></span>
+       <a accesskey="N" href="{$newContribURL|smarty:nodefaults}" class="button"><span><i class="crm-i fa-plus-circle" aria-hidden="true"></i> {ts}Add Pledge{/ts}</a></span>
        <br/><br/>
     </div>
 {/if}