Don't overescape tab links
authorBradley Taylor <hello@brad-taylor.co.uk>
Thu, 14 Apr 2022 20:50:57 +0000 (21:50 +0100)
committerBradley Taylor <hello@brad-taylor.co.uk>
Thu, 14 Apr 2022 20:50:57 +0000 (21:50 +0100)
templates/CRM/Contact/Page/View/Summary.tpl
templates/CRM/common/TabHeader.tpl

index f6eb81a871cca0f3d254e4abede61f8afa8e5b65..e785c9af6ee3a31562992b28c9b41e438408179b 100644 (file)
       <ul class="crm-contact-tabs-list">
         {foreach from=$allTabs item=tabValue}
           <li id="tab_{$tabValue.id}" class="crm-tab-button ui-corner-all{if is_numeric($tabValue.count)} crm-count-{$tabValue.count}{/if}{if $tabValue.class} {$tabValue.class}{/if}">
-            <a href="{if $tabValue.template}#contact-{$tabValue.id}{else}{$tabValue.url}{/if}" title="{$tabValue.title|escape}">
+            <a href="{if $tabValue.template}#contact-{$tabValue.id}{else}{$tabValue.url|smarty:nodefaults}{/if}" title="{$tabValue.title|escape}">
               <i class="{if !empty($tabValue.icon)}{$tabValue.icon}{else}crm-i fa-puzzle-piece{/if}" aria-hidden="true"></i>
               <span>{$tabValue.title}</span>
               {if empty($tabValue.hideCount)}<em>{if is_numeric($tabValue.count)}{$tabValue.count}{/if}</em>{/if}
index 7d8ae7ad0d308b147dc9cb61688cfbfd115719c5..83fdd282147d2c42c6b256739e5187956184a2f0 100644 (file)
@@ -15,7 +15,7 @@
        {foreach from=$tabHeader key=tabName item=tabValue}
           <li id="tab_{$tabName}" class="crm-tab-button ui-corner-all{if !$tabValue.valid} disabled{/if} {$tabValue.class}" {$tabValue.extra}>
           {if $tabValue.active}
-             <a href="{if $tabValue.template}#panel_{$tabName}{else}{$tabValue.link}{/if}" title="{$tabValue.title|escape}{if !$tabValue.valid} ({ts}disabled{/ts}){/if}">
+             <a href="{if $tabValue.template}#panel_{$tabName}{else}{$tabValue.link|smarty:nodefaults}{/if}" title="{$tabValue.title|escape}{if !$tabValue.valid} ({ts}disabled{/ts}){/if}">
                {if $tabValue.icon}<i class="{$tabValue.icon}"></i>{/if}
                <span>{$tabValue.title}</span>
                {if is_numeric($tabValue.count)}<em>{$tabValue.count}</em>{/if}