Is there a reason header() is preferred over drupal_goto() in affiliates_click()? Reason I ask is that with header(), a fully qualified URL must be used for the $redirect value rather than node/123.