Issue #2872874 by Munavijayalakshmi: Replaced deprecated entity->urlInfo() method with entity->toUrl().