Fix name in error emission

InvalidRedirectLocation -> InvalidRedirect

I ended up submitting the PR to the correct branch :)