nit: you're not returning a path. Maybe "resolveUrl"?