Fix some stupidness in the redirect plugin