Answered it myself, just needed an extra slash:
Quote:
{if $products|@count eq 1}
{assign var="prodURL" value="product.php?productid=`$products.0.producti d`&cat=$cat&page=1"}
{php}
header( "Location: /" . $GLOBALS[smarty]->_tpl_vars[prodURL] );
{/php}
{/if}
|