title: How to get the current url in a OpenCart .tpl file?
body: <p>I'd like to get the current url in a .tpl file in OpenCart.</p>
  
  <p>I've seen this <a href="https://stackoverflow.com/questions/17321029/how-to-find-route-of-a-current-page">answer</a> but it works only in a php file.</p>
  
  <p>I have to get this way:</p>
  
  <pre><code>_my_array.push(['_productName',"&lt;?php echo $heading_title; ?&gt;"]);
  **_my_array.push(['_productUrl', ["how can I get url ?"]]);**
  </code></pre>
  
  <p>Thanks</p>