Project

General

Profile

Actions

Bug #89686

closed

typolink must link to current language

Added by Franz Holzinger over 4 years ago. Updated over 3 years ago.

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();

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #90613: Add language Parameter to several Link/Uri VHClosed2020-03-02

Actions
Actions

Also available in: Atom PDF