simplfied getUrl method