From f0fd9e5cff0f4b77839335fa74f9884fdc391d20 Mon Sep 17 00:00:00 2001 From: Christian Wach Date: Tue, 21 Nov 2023 14:22:28 +0000 Subject: [PATCH] Use currentPath method to build QuickForm post URL --- CRM/Utils/System/Base.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); } -- 2.25.1