fix method:disableautoredirecthandler not work issue