Project

General

Profile

Actions

Bug #88264

closed

Epic #89797: HrefLang / Canonical issues

Canonical and hreflang with tracking params

Added by Marc Hirdes over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Category:
SEO
Target version:
-
Start date:
2019-05-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

I currently struggle with hreflang and tracking params. They will not be shown in the hreflang, but then they will have a lost connection. hreflang should allways refer to each other. Otherwise there will be shown an error in the Google Search Console.

my question is, if we have page like for example /home/.

The canonical is
https://www.domain.org/home/

The href-lang is
<link rel="alternate" hreflang="de" href="https://www.domain.org/de/start/&quot;/>

Everything is ok. On https://www.domain.org/de/start/

the canonical would be
https://www.domain.org/de/start/
and the hreflang
<link rel="alternate" hreflang="en" href="https://www.domain.org/home/&quot;/>

If my page is in the Google index with
https://www.domain.org/home/?my_tracking_parameter=xy

Then also the canonical and href lang would be the same as above, so without the parameter. For the canonical this works, but for the hreflang not. There would be a missing conection from https://www.domain.org/de/start/ to https://www.domain.org/home/?my_tracking_parameter=xy

Therefore the hreflang sould not be set if the canonical is a different than the current URL. But then we have the challange with the page cache. So https://www.domain.org/home/?myparameter=xy would have the same cached page as https://www.domain.org/home/.

My only solution for this problem would be to use the sitemap.xml for hreflang instead of the HTML head, as it is shown here https://support.google.com/webmasters/answer/189077#sitemap

What do you think about?


Files

hreflang.jpg (139 KB) hreflang.jpg Marc Hirdes, 2019-12-09 13:18
hreflang.jpg (139 KB) hreflang.jpg correct version Marc Hirdes, 2019-12-09 13:21
hreflang_final.jpg (139 KB) hreflang_final.jpg Marc Hirdes, 2019-12-09 13:26

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #89878: Hreflang links not using canonical urlsClosed2019-12-06

Actions
Actions

Also available in: Atom PDF