Refs #8267 - pass template_url in call to foreman

Also passes the ?static parameter on correctly