generateTagUrl() more efficient