Allows a resource URL to be a function called when building URL