salieeri Posted June 17, 2013 Share Posted June 17, 2013 Bonjour à tout le monde! Afin d'optimiser le réferencement d'un site Prestashop, j'ai décidé d'inserer ce code dans le header.tpl <!-- {foreach from=$languages|@array_reverse key=k item=language name="languages"} <link rel="alternate" href="{if isset($language.link)}{$language.link}{else}{$link->getLanguageLink($language.id_lang, $language.name)}{/if}" hreflang="{$language.iso_code}" /> {/foreach}--> Malhereusement, la fonction getLanguageLink ne retourne pas l'url reécrit, mais des url du style "http://www.monsite.com/fr/category.php?id_category=7" Unfortunately, the getLanguageLink does not return the friendly URL. Est-ce que vous connaissez quoi faire? J'ai éssayé de changer le code dans /classes/Link.php, mais sans résultats. Merci par avance de vos réponses! Link to comment Share on other sites More sharing options...
salieeri Posted June 21, 2013 Author Share Posted June 21, 2013 up 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