redirect URL need encodeURIComponent.