From 1f15ad571276c4973099c20675a097f7e7d9fa7d Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Wed, 18 Jan 2023 19:55:05 +0000 Subject: [PATCH] Paypal: Use getBaseReturnUrl() function --- CRM/Core/Payment/PayPalImpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Payment/PayPalImpl.php b/CRM/Core/Payment/PayPalImpl.php index df8a8512dd..87ed5d31fd 100644 --- a/CRM/Core/Payment/PayPalImpl.php +++ b/CRM/Core/Payment/PayPalImpl.php @@ -939,7 +939,7 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment { $notifyURL = $this->getNotifyUrl(); $config = CRM_Core_Config::singleton(); - $url = ($this->_component == 'event') ? 'civicrm/event/register' : 'civicrm/contribute/transact'; + $url = $this->getBaseReturnUrl(); $cancel = ($this->_component == 'event') ? '_qf_Register_display' : '_qf_Main_display'; $cancelUrlString = "$cancel=1&cancel=1&qfKey={$params['qfKey']}"; -- 2.25.1