Ad

How Can I Remove The Region In TYPO3 9 SEO Extension From Hreflang

- 1 answer

In a customer project we use the SEO Extension from TYPO3 9. It creates automatically the hreflang tags for us.

But how can I remove the region from the hreflang tags?

IT LOOKS LIKE THIS

<link rel="alternate" hreflang="de-DE" target="_blank" rel="nofollow noreferrer" target="_blank" rel="nofollow noreferrer" href="https://stage.customer.com/de/"/>
<link rel="alternate" hreflang="en-US" target="_blank" rel="nofollow noreferrer" target="_blank" rel="nofollow noreferrer" href="https://stage.customer.com/en/"/>
<link rel="alternate" hreflang="x-default" target="_blank" rel="nofollow noreferrer" target="_blank" rel="nofollow noreferrer" href="https://stage.customer.com/de/"/>

IT SHOULD LOOK LIKE THAT

<link rel="alternate" hreflang="de" target="_blank" rel="nofollow noreferrer" target="_blank" rel="nofollow noreferrer" href="https://stage.customer.com/de/"/>
<link rel="alternate" hreflang="en" target="_blank" rel="nofollow noreferrer" target="_blank" rel="nofollow noreferrer" href="https://stage.customer.com/en/"/>
<link rel="alternate" hreflang="x-default" target="_blank" rel="nofollow noreferrer" target="_blank" rel="nofollow noreferrer" href="https://stage.customer.com/de/"/>

If I seach the SEO Extension for simple de-DE I find nothing.

Ad

Answer

EXT:seo fetches that from your site config, under languages › Frontend related:

site configuration

Ad
source: stackoverflow.com
Ad