Your specific use case isn’t clear, especially in regards to how the article and the template are related to each other.
If the Article CMS item contains the information necessary to construct the template URL than you can accomplish this on the Article’s CMS page, using a META redirect in the HEAD custom code area.
You’d simply construct the meta with the path you want redirected to, using field insertion.