properly resolve redirectUrls