Merging group-urls code