fix url redirect case