From 6166e0b41e7ddee675be6b78d4d0838c6781229d Mon Sep 17 00:00:00 2001 From: Sarah Poger Gladstone Date: Wed, 29 May 2019 23:54:25 -0400 Subject: [PATCH] Update fancytokens.php --- fancytokens.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fancytokens.php b/fancytokens.php index 73f3a7d..b9ee858 100644 --- a/fancytokens.php +++ b/fancytokens.php @@ -654,9 +654,12 @@ $protocol = $isSecure ? 'https://' : 'http://'; $tmp_alias = $record->alias; $tmp_nid = $record->nid; if( strlen( $tmp_alias) > 0){ - $partial_webform_link_url = $protocol.$website_host_name."/".$tmp_alias; + //$partial_webform_link_url = $protocol.$website_host_name."/".$tmp_alias; + $partial_webform_link_url = CRM_Utils_System::url($tmp_alias, "", TRUE, NULL, TRUE, TRUE); + }else{ - $partial_webform_link_url = $protocol.$website_host_name."/node/".$tmp_nid; + //$partial_webform_link_url = $protocol.$website_host_name."/node/".$tmp_nid; + $partial_webform_link_url = CRM_Utils_System::url("/node/".$tmp_nid , "", TRUE, NULL, TRUE, TRUE); } $link_label = $tmp_title;