Skip to content

Commit

Permalink
veda-consulting-company#99 fix redirect url after fill communication …
Browse files Browse the repository at this point in the history
…preferences
  • Loading branch information
mathavanveda committed May 21, 2018
1 parent 845fcc9 commit d5d4c08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Gdpr/Form/UpdatePreference.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d5d4c08

Please sign in to comment.