Skip to content

Commit fd69279

Browse files
committed
[BUGFIX] Calculate and set link variables to fix generated urls
While initialising the TSFE object the language parameter (L) is set to the according language, but if the language parameter is not set in the indexing configuration the link will not contain the required parameter, calling "calculateLinkVars()" fixes this issue.
1 parent b87cbed commit fd69279

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Classes/Util.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ public static function initializeTsfe($pageId, $language = 0, $useCache = TRUE)
346346
$GLOBALS['TSFE']->settingLanguage();
347347
$GLOBALS['TSFE']->newCObj();
348348
$GLOBALS['TSFE']->absRefPrefix = ($GLOBALS['TSFE']->config['config']['absRefPrefix'] ? trim($GLOBALS['TSFE']->config['config']['absRefPrefix']) : '');
349+
$GLOBALS['TSFE']->calculateLinkVars();
349350

350351
if ($useCache) {
351352
$tsfeCache[$cacheId] = $GLOBALS['TSFE'];

0 commit comments

Comments
 (0)