calls hooks when following redirects