please add some logging here about the redirect