Bug #86866

Hreflang tags for pages with extension records not correct

Added by Chris Müller 5 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Must have
Assignee:
-
Category:
SEO
Target version:
-
Start date:
2018-11-06
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Using for example the news extension: I have a detail page with the news plugin integrated to show the news article, e.g. with the following URL:

https://example.org/en/path/to/news/detail/my-awesome-news-article/

Looking at the html code of the generated page I see that the content of the hreflang tags are set to the hosting page:

<link rel="alternate" hreflang="en" href="https://example.org/en/path/to/news/detail/"/>
<link rel="alternate" hreflang="x-default" href="https://example.org/en/path/to/news/detail/"/>


Related issues

Related to TYPO3 Core - Feature #87128: Add acceptance test concerning canonicalized URL creation Under Review 2018-12-11
Duplicates TYPO3 Core - Bug #86577: hreflang and canonical ignores extension parameters Resolved 2018-10-05

Associated revisions

Revision 9988b62b (diff)
Added by Richard Haeser 4 months ago

[BUGFIX] Respect GET parameters when generating canonicalized URLs

Add current query string to the generated canonicalized URL to make the
hreflang and canonical work with additional parameters as well.

Parameters that are excluded from cache hash generation and not included
in $GLOBALS['TYPO3_CONF_VARS']['FE']['additionalCanonicalizedUrlParameters'],
are excluded from the canonicalized URL.

Resolves: #86577
Resolves: #86866
Resolves: #86865
Releases: master
Change-Id: Ib574e2f6c7aa869b4ffa798c7122a60f4cf13f13
Reviewed-on: https://review.typo3.org/58611
Tested-by: Joerg Kummer <>
Tested-by: TYPO3com <>
Reviewed-by: Joerg Kummer <>
Reviewed-by: Markus Klein <>
Tested-by: Markus Klein <>

History

#1 Updated by Chris Müller 5 months ago

  • Category set to SEO

#2 Updated by Richard Haeser 4 months ago

  • Duplicates Bug #86577: hreflang and canonical ignores extension parameters added

#3 Updated by Richard Haeser 4 months ago

  • Status changed from New to Accepted

#4 Updated by Gerrit Code Review 4 months ago

  • Status changed from Accepted to Under Review

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#5 Updated by Gerrit Code Review 4 months ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#6 Updated by Gerrit Code Review 4 months ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#7 Updated by Gerrit Code Review 4 months ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#8 Updated by Gerrit Code Review 4 months ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#9 Updated by Gerrit Code Review 4 months ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#10 Updated by Gerrit Code Review 4 months ago

Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#11 Updated by Gerrit Code Review 4 months ago

Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#12 Updated by Gerrit Code Review 4 months ago

Patch set 13 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#13 Updated by Gerrit Code Review 4 months ago

Patch set 14 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#14 Updated by Gerrit Code Review 4 months ago

Patch set 15 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#15 Updated by Gerrit Code Review 4 months ago

Patch set 16 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#16 Updated by Gerrit Code Review 4 months ago

Patch set 17 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#17 Updated by Gerrit Code Review 4 months ago

Patch set 18 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#18 Updated by Gerrit Code Review 4 months ago

Patch set 19 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#19 Updated by Gerrit Code Review 4 months ago

Patch set 20 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#20 Updated by Gerrit Code Review 4 months ago

Patch set 21 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58611

#21 Updated by Richard Haeser 4 months ago

  • Status changed from Under Review to Resolved

#22 Updated by Steffen Dietrich 4 months ago

  • Related to Feature #87128: Add acceptance test concerning canonicalized URL creation added

Also available in: Atom PDF