Fix redirect_path typo, add comments