Change generateObjectUrl to generateUrl to pass tests.