Bug #88032

Only populate HrefLang, if they are available

Added by Julian Wundrak over 3 years ago. Updated over 3 years ago.

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

100%

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

Description

Currently href_lang-Tags are generated and populate every time. E.g. there is a news entry, that is only for Language 0,1,2 but not in Language 3 available, you have the possibility to throw a `InvalidRouteArgumentsException` - Exception. In this case, href lang generates also an entry for this page, but the link is only the site-base-route.

Simply check, if the given link is not empty, resolves the problem. Pull request is after submit available


Related issues

Related to TYPO3 Core - Bug #87814: Redirect loop when called with e.g. example.com/index.php?id=1&L=1Closed2019-02-28

Actions
#1

Updated by Julian Wundrak over 3 years ago

  • Category set to SEO
#2

Updated by Gerrit Code Review over 3 years ago

  • Status changed from New to Under Review

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

#3

Updated by Gerrit Code Review over 3 years ago

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

#4

Updated by Gerrit Code Review over 3 years ago

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

#5

Updated by Gerrit Code Review over 3 years ago

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

#6

Updated by Gerrit Code Review over 3 years ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60458

#7

Updated by Julian Wundrak over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#8

Updated by Gerrit Code Review over 3 years ago

  • Status changed from Resolved to Under Review

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

#9

Updated by Anonymous over 3 years ago

  • Status changed from Under Review to Resolved
#10

Updated by Gerrit Code Review over 3 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60514

#11

Updated by Anonymous over 3 years ago

  • Status changed from Under Review to Resolved
#12

Updated by Benni Mack over 3 years ago

  • Status changed from Resolved to Closed
#13

Updated by Benni Mack over 2 years ago

  • Related to Bug #87814: Redirect loop when called with e.g. example.com/index.php?id=1&L=1 added

Also available in: Atom PDF