Adjusted the external link regex place an empty href with hash anchor. Changed pathfix_404() to just return the path it finds from Drupal.