generateUrl() called everywhere in place of older generate url methods