How to correctly use {$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI} in Smarty?
<p>I have a blog page in my website, which uses Smarty to create the posts, and I want to add a WhatsApp share button to them using it. I already searched on the whole internet, and I found this:</p>

<pre><code>{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}
</code></pre>

<p>I am trying to use this right now in my blog.tpl file:</p>

<pre><code>&lt;a class="whatsapp" href="whatsapp://send?text={$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}"&gt;Compartilhar&lt;/a&gt;
</code></pre>

<p>What's wrong with my code, and how could i fix it?</p>