use url resolve to construct the redirect url