Seb17 Posted May 9, 2020 Share Posted May 9, 2020 (edited) Bonjour à tous. Petit souci avec la balise hreflang. J'ai dans mon thème cette balise. Cepandant je n'utilise que la langue française. (prestashop 1.7) Du coup j'ai des erreurs missing return links. Quel solution puis-je avoir supprimer ou adapter la balise pour que cela fonctionne. J'ai essayé de pour cette balise mais j'ai toujours une erreur 500 ! Voici le code : {/if} {if $page.canonical} <link rel="canonical" href="{$page.canonical}"> {/if} {block name='head_hreflang'} {if isset($urls.alternative_langs)} {foreach from=$urls.alternative_langs item=pageUrl key=code} <link rel="alternate" href="{$pageUrl}" hreflang="{$code}"> {/foreach} {/if} {/block} {/block} J'essaye de supprimer : {/if} {block name='head_hreflang'} {if isset($urls.alternative_langs)} {foreach from=$urls.alternative_langs item=pageUrl key=code} <link rel="alternate" href="{$pageUrl}" hreflang="{$code}"> {/foreach} Mais voila erreur 500 Merci beaucoup pour le coup de pouce. Edited May 9, 2020 by Seb17 (see edit history) Link to comment Share on other sites More sharing options...
Seb17 Posted May 9, 2020 Author Share Posted May 9, 2020 Juste en retirant le lien : <link rel="alternate" href="{$pageUrl}" hreflang="{$code}"> Plus d'erreur pour la localisation 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