Fixing call to getUrl() to use the class method.