Jump to content

getLanguageLink return friendly URLLink


Recommended Posts

Hi everyone!

 

For SEO purposes, I want to insert this code into 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}-->

 

Unfortunately, the getLanguageLink does not return the friendly URL.

Does anyone know how can I change that? I tried to change something from /classes/Link.php, but nothing worked.

 

Thanks for your answers!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...