Fix reading from the redirected url