fix next redirect when connect to a social network account