+ $urlString = CRM_Utils_System::currentPath();
+ $urlParams = 'reset=1';
+
+ // Redirect to copied contribution page
+ if ($copy->id) {
+ $urlString = 'civicrm/admin/contribute/settings';
+ $urlParams .= '&action=update&id=' . $copy->id;
+ }
+
+ CRM_Utils_System::redirect(CRM_Utils_System::url($urlString, $urlParams));