Skip to content

Commit 6120e63

Browse files
committed
[BUGFIX] Auto detection glossary
Until TYPO3 v10, the page ID in requests is given as `pageId` instead of `id`. This bugfix respects the given request and detects correct page ID in DeeplBackendUtility for determining glossary. Backport to v4 not necessary, as since TYPO3 v11 the ID is given as `id`
1 parent e3947f5 commit 6120e63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/Utility/DeeplBackendUtility.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ public static function detectCurrentPage(): array
343343
self::$currentPage = [];
344344
$request = $GLOBALS['TYPO3_REQUEST'];
345345
$queryParams = $request ? $request->getQueryParams() : [];
346-
if (isset($queryParams['id'])) {
347-
$currentId = (int)$queryParams['id'];
346+
if (isset($queryParams['id']) || isset($queryParams['pageId'])) {
347+
$currentId = (int)($queryParams['id'] ?? $queryParams['pageId']);
348348
return self::getPageRecord($currentId);
349349
}
350350
if (isset($queryParams['cmd'])) {

0 commit comments

Comments
 (0)