solve redirect_url problem