Fix get the redirect url after redirected.