bug fix redirect_url