Actions
Bug #89686
closedtypolink must link to current language
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-11-14
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
If I have German as the default language and I have activated the French view, then the links should show to the French pages by default. However all links go to the German pages.
https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Functions/Typolink.html#language
If I omit the language configuration with the typolink function, then the current (French) language should be used. However the default German language is used.
It only works if I read the language and add the language configuration for each link.
$languageAspect = GeneralUtility::makeInstance(Context::class)->getAspect('language');
// (previously known as TSFE->sys_language_uid)
$result = $languageAspect->getId();
Actions