expandURL: template group

@russellholt