$pieces = parse_url($url);
if (isset($pieces['fragment'])) {
- $url = str_replace('#' . $pieces['fragment'], '', $url);
+ $url = str_replace('#' . $pieces['fragment'], '', $url);
}
// Handle additional query string params.
}
}
-CRM_Utils_System::redirect($url);
+// CRM-17953 - The CMS is not bootstrapped so cannot use CRM_Utils_System::redirect
+header('Location: ' . $url);
+CRM_Utils_System::civiExit();