Incorrect behavior for alternative links

Found in

EPiServer.CMS.UI 11.28.0

Fixed in

EPiServer.CMS.Core 11.20.3

Created

Oct 15, 2020

Updated

Jan 15, 2021

Area

CMS Core

State

Closed, Fixed and tested


Description

Details

According to Google, alternative links need to be outputted in an absolute URL format. This does not seem to be the case with the built in alternate links extension in Episerver, resulting in incorrect behaviour with Google complaining.
 
I would like to get this registered as a bug.
 
Reference:
https://support.google.com/webmasters/answer/189077?hl=en
Example of output of the extension method for the episerver.com site:

<link href="/" rel="canonical" />
<link href="/" hreflang="en" rel="alternate" />
<link href="/de" hreflang="de" rel="alternate" />
<link href="/se" hreflang="sv" rel="alternate" />
<link href="/no" hreflang="no" rel="alternate" />