Fix `crmURL` parameters in various templates
In Smarty templates, when the q
parameter is prefixed with an ampersand, for example:
{crmButton p='civicrm/contact/view/delete' q="&reset=1&delete=1&cid=$contactId" class="delete" icon="trash"}
the resulting URL contains &&
like this:
http://civicrm.local/wp-admin/admin.php?page=CiviCRM&q=civicrm/contact/view/delete&&reset=1&delete=1&cid=202
This happens in a number template files. PR to follow.