Added url encoding during redirect on team