Project

General

Profile

Actions

Bug #88032

closed

Only populate HrefLang, if they are available

Added by Julian Wundrak over 5 years ago. Updated over 5 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 1 (0 open1 closed)

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

Actions
Actions

Also available in: Atom PDF