Update to getUrl method.