Skip to content

Don't define hreflang language by shop language #1

@Chrisi1321

Description

@Chrisi1321

Hi Guys,

Great module and works almost like it should.

I have a multishop configuration with a shop for Germany one for Austria and one for switzerland.
Language is always the same (german).

As it is not possible in Prestashop 1.7 to add a second / third language with the same iso code the module has a problem to set the correct language code for the stores.

   
 <link rel="alternate" hreflang="x-default" href="https://www.aktiv-naturheilmittel.at" />   <link rel="alternate" hreflang="de-de" href="https://www.aktiv-naturheilmittel.at" />   <link rel="alternate" hreflang="de-de" href="https://www.aktiv-naturheilmittel.de" />   <link rel="alternate" hreflang="de-de" href="https://www.aktiv-naturheilmittel.ch" />   <link rel="canonical" href="https://www.aktiv-naturheilmittel.at" />

As you can see the correct hreflang setup should have de-at for Austria and de-ch for Switzerland.

In backoffice there is the possibility to set the correct paramaters for each store, so perhaps it possible to for to change the variables in the code.

Bildschirmfoto 2019-03-25 um 22 46 46

Would be great,
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions