From: Christian Wach Date: Tue, 21 Nov 2023 14:22:28 +0000 (+0000) Subject: Use currentPath method to build QuickForm post URL X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f0fd9e5cff0f4b77839335fa74f9884fdc391d20;p=civicrm-core.git Use currentPath method to build QuickForm post URL --- diff --git a/CRM/Utils/System/Base.php b/CRM/Utils/System/Base.php index 4f21308146..1be54baed2 100644 --- a/CRM/Utils/System/Base.php +++ b/CRM/Utils/System/Base.php @@ -108,12 +108,12 @@ abstract class CRM_Utils_System_Base { * The url to post the form. */ public function postURL($action) { - $config = CRM_Core_Config::singleton(); if (!empty($action)) { return $action; } - return $this->url(CRM_Utils_Array::value($config->userFrameworkURLVar, $_GET), + $current_path = CRM_Utils_System::currentPath(); + return $this->url($current_path, NULL, TRUE, NULL, FALSE ); }