diff --git a/templates/CRM/Contribute/Page/ContributionPage.tpl b/templates/CRM/Contribute/Page/ContributionPage.tpl
index 258af56f8556..2321d2524b2b 100644
--- a/templates/CRM/Contribute/Page/ContributionPage.tpl
+++ b/templates/CRM/Contribute/Page/ContributionPage.tpl
@@ -55,25 +55,25 @@
{if $row.configureActionLinks}
- {$row.configureActionLinks|replace:'xx':$row.id}
+ {$row.configureActionLinks|smarty:nodefaults|replace:'xx':$row.id}
- {/if}
+ {/if}
- {if $row.contributionLinks}
-
- {$row.contributionLinks|replace:'xx':$row.id}
-
+ {if $row.contributionLinks}
+
+ {$row.contributionLinks|smarty:nodefaults|replace:'xx':$row.id}
+
{/if}
{if $row.onlineContributionLinks}
-
- {$row.onlineContributionLinks|replace:'xx':$row.id}
-
+
+ {$row.onlineContributionLinks|smarty:nodefaults|replace:'xx':$row.id}
+
{/if}
- {$row.action|replace:'xx':$row.id}
-
+ {$row.action|smarty:nodefaults|replace:'xx':$row.id}
+