fatyas Posted July 6, 2014 Share Posted July 6, 2014 Hi, I am trying to solve the google duplicates due to pagination. Can somebody help me add the recommended rel=next and rel=prev in the header of the pages for prestashop 1.4. I have tried adding the code below unfortunately it works in pagination.tpl but not in header.tpl: {if $start!=$stop} {if $p != 1} {assign var='p_previous' value=$p-1} <link rel="prev" href="/{$request_uri|substr:1|regex_replace:'/\/(.*)/':''|regex_replace:'/\?(.*)/':''}/{$link->goPage($requestPage, $p_previous)}" /> {else} {/if} {if $pages_nb > 1 AND $p != $pages_nb} {assign var='p_next' value=$p+1} <link rel="next" href="/{$request_uri|substr:1|regex_replace:'/\/(.*)/':''|regex_replace:'/\?(.*)/':''}/{$link->goPage($requestPage, $p_next)}" /> {else} {/if} {/if} How can I make it work in header.tpl? Thanks, Faty Link to comment Share on other sites More sharing options...
Delart Posted October 17, 2014 Share Posted October 17, 2014 Same problem, did you solve it somehow? Thanks Link to comment Share on other sites More sharing options...
alx1 Posted November 12, 2014 Share Posted November 12, 2014 (edited) It is strange that this issue is not well known and there we cant find a sollution for it. I hope the clever guys will help us soon. Alex Edited November 12, 2014 by alx1 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now