From d5d4c08a35cd07673b7a6daa81991f7835365dc8 Mon Sep 17 00:00:00 2001 From: Mathavan Veeramuthu Date: Mon, 21 May 2018 15:19:24 +0100 Subject: [PATCH] #99 fix redirect url after fill communication preferences --- CRM/Gdpr/Form/UpdatePreference.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Gdpr/Form/UpdatePreference.php b/CRM/Gdpr/Form/UpdatePreference.php index 0fcee86..528cc22 100644 --- a/CRM/Gdpr/Form/UpdatePreference.php +++ b/CRM/Gdpr/Form/UpdatePreference.php @@ -452,7 +452,8 @@ public function postProcess() { //Get the destination url from settings and redirect if we found one. if (!empty($this->commPrefSettings['completion_redirect'])) { $destinationURL = !empty($this->commPrefSettings['completion_url']) ? $this->commPrefSettings['completion_url'] : NULL; - $destinationURL = CRM_Utils_System::url($destinationURL, NULL, TRUE); + //MV: commenting this line, We have already restriceted the setting to get only absoulte URl. + // $destinationURL = CRM_Utils_System::url($destinationURL, NULL, TRUE); CRM_Core_Error::debug_var('destinationURL', $destinationURL ); CRM_Utils_System::redirect($destinationURL); }