title: Add link rel next/prev on Prestashop in header.tpl
body: <p>I'm trying to add links for next/prev in a prestashop site.</p>
  
  <p>Unfortunately, everything i've tried doesnt work... except canonical rel.</p>
  
  <p>This is what i've tried:</p>
  
  <pre><code>{if $start!=$stop} 
  {if $p != 1} 
  {assign var='p_previous' value=$p-1} 
  &lt;link rel="prev" href="/{$request_uri|substr:1|regex_replace:'/\/(.*)/':''|regex_replace:'/\?(.*)/':''}/{$link-&gt;goPage($requestPage, $p_previous)}" /&gt; 
  {else} 
  {/if} 
  {if $pages_nb &gt; 1 AND $p != $pages_nb} 
  {assign var='p_next' value=$p+1} 
  &lt;link rel="next" href="/{$request_uri|substr:1|regex_replace:'/\/(.*)/':''|regex_replace:'/\?(.*)/':''}/{$link-&gt;goPage($requestPage, $p_next)}" /&gt; 
  {else} 
  {/if} 
  {/if}
  </code></pre>