Product Url In .tpl File For A Product

How can we get a product url to be displayed in the tpl file

$url = $http_location . "/" . $product['seo_name'] . ".html";

I found this code

{assign var="url" value="`$config.current_location`/`$config.current_url`"|fn_url}

but i dont need this since it adds the utm params also incase some one is coming from a referral link.

we want the plain product url which is created using the seo path.

{$canonical_url} works

{$canonical_url} works

I found this code

{assign var="url" value="`$config.current_location`/`$config.current_url`"|fn_url}

but i dont need this since it adds the utm params also incase some one is coming from a referral link.

we want the plain product url which is created using the seo path.

both are correct :)

How can we get a product url to be displayed in the tpl file

$url = $http_location . "/" . $product['seo_name'] . ".html";

Correct code which will work with disabled and enabled SEO module

{$url = "products.view?product_id=`$product.product_id`"|fn_url}