diff --git a/includes/civicrm.shortcodes.modal.php b/includes/civicrm.shortcodes.modal.php index b5727e68b90d71eb49bfd798beb11dbd6f4f1391..c250d4ea5eb9704a65449162b72ba12388afbddf 100644 --- a/includes/civicrm.shortcodes.modal.php +++ b/includes/civicrm.shortcodes.modal.php @@ -107,7 +107,8 @@ class CiviCRM_For_WordPress_Shortcodes_Modal { $config = CRM_Core_Config::singleton(); $imageBtnURL = $config->resourceBase . 'i/logo16px.png'; - echo '<a href="/wp-admin/admin.php?page=CiviCRM&q=civicrm/shortcode&reset=1" class="button crm-popup medium-popup crm-shortcode-button" data-popup-type="page" style="padding-left: 4px;" title="' . __( 'Add CiviCRM Public Pages', 'civicrm' ) . '"><img src="' . $imageBtnURL . '" height="15" width="15" alt="' . __( 'Add CiviCRM Public Pages', 'civicrm' ) . '" />'. __( 'CiviCRM', 'civicrm' ) .'</a>'; + $url = admin_url( 'admin.php?page=CiviCRM&q=civicrm/shortcode&reset=1' ); + echo '<a href= "' . $url . '" class="button crm-popup medium-popup crm-shortcode-button" data-popup-type="page" style="padding-left: 4px;" title="' . __( 'Add CiviCRM Public Pages', 'civicrm' ) . '"><img src="' . $imageBtnURL . '" height="15" width="15" alt="' . __( 'Add CiviCRM Public Pages', 'civicrm' ) . '" />'. __( 'CiviCRM', 'civicrm' ) .'</a>'; }