Actions
Bug #98601
closedtypolink with parameter "/"
Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-10-13
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
the following viewhelper:
<f:link.typolink parameter="/" ></f:link.typolink>
results in an empty link <a class="">
This affects especially the language menus because the language data handler delivers "link: /" for the homepage in the default language.
In constructions like
<f:link.typolink parameter="{languagemenu.link}" ></f:link.typolink>
this results in empty links for the homepage in the default language.
Reason is a modification in typo3/systext/frontend/Classes/Service/TypoLinkCodecService.php. This line from Typo3 vs. 10:
$value = str_replace(['\\', '"'], ['\\\\', '\\"'], $value);
changes to:
$parts = str_replace(['\\\\', '\\"'], ['\\', '"'], str_getcsv($typoLink, static::$partDelimiter));
str_getcsv removes single slashes.
Actions