Moved static redirections code for missing resources to new hook and event