Skip to content

Render same set of hreflang tags across languages #50

@psolbach

Description

@psolbach

A recent Semrush report indicated that we should render the same set of hreflang tags across languages and include a reference to the current language version as well. This matches what Google writes in their documentation

So instead of this for e.g. foobar.com/en:

<link rel=alternate hreflang=x-default href=https://foobar.com/en>
<link rel=alternate hreflang=de href=https://foobar.com/de>

We want this:

<link rel=alternate hreflang=x-default href=https://foobar.com/en>
<link rel=alternate hreflang=en href=https://foobar.com/en>
<link rel=alternate hreflang=de href=https://foobar.com/de>

Metadata

Metadata

Labels

enhancementNew feature or requestinvalidThis doesn't seem right

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions