Using url.resolve to resolve artifacts url