getUrl method changed