Automatic group selection by URL