Fix redirects, test a redirect on fail.