Helper method to infer the parent resource URL