Hook for redirects exceeded removed and error handling adjusted instead