Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v11 here: TYPO3 ELTS.
Routing
The routing
frontend request attribute provides routing information in
the object \TYPO3\
. If you want to know the
current page ID or retrieve the query parameters this attribute is your friend.
Example:
$pageArguments = $request->getAttribute('routing');
$pageId = $pageArguments->getPageId();
Copied!