diff --git a/civicrm-ux.php b/civicrm-ux.php index 9d9bad1..bc6f9c8 100755 --- a/civicrm-ux.php +++ b/civicrm-ux.php @@ -9,7 +9,7 @@ * Plugin Name: WP CiviCRM UX * Plugin URI: https://github.com/agileware/wp-civicrm-ux * Description: A better user experience for integrating WordPress and CiviCRM - * Version: 1.4.0 + * Version: 1.4.1 * Author: Agileware * Author URI: https://agileware.com.au/ * License: GPL-2.0+ @@ -24,7 +24,7 @@ * Start at version 1.0.0 and use SemVer - https://semver.org * Rename this for your plugin and update it as you release new versions. */ -define( 'CIVICRM_UXVERSION', '1.4.0' ); +define( 'CIVICRM_UXVERSION', '1.4.1' ); // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { diff --git a/shortcodes/event/event-listing.php b/shortcodes/event/event-listing.php index 0a15b2b..0e45576 100644 --- a/shortcodes/event/event-listing.php +++ b/shortcodes/event/event-listing.php @@ -110,12 +110,14 @@ private function get_event_item_html(array $event) { } private function get_event_register_link_html(string $event_id) { - $url = CRM_Utils_System::url('civicrm/event/register', ['id' => $event_id]); + // URLs must be absolute as this shortcode may be used by the au.com.agileware.evaluatewpshortcode extension + $url = CRM_Utils_System::url('civicrm/event/register', ['id' => $event_id],TRUE,NULL,TRUE,TRUE); return 'Register now'; } private function get_event_info_link_html(string $event_id, string $text = 'More information') { - $url = CRM_Utils_System::url('civicrm/event/info', ['id' => $event_id]); + // URLs must be absolute as this shortcode may be used by the au.com.agileware.evaluatewpshortcode extension + $url = CRM_Utils_System::url('civicrm/event/info', ['id' => $event_id],TRUE,NULL,TRUE,TRUE); return '' . $text . ''; }