Attention
TYPO3 v12 has reached end-of-life as of April 30th 2026 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 v12 here: TYPO3 ELTS.
Routing
Frontend
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:
/** @var \Psr\Http\Message\ServerRequestInterface $request */
$pageArguments = $request->getAttribute('routing');
$pageId = $pageArguments->getPageId();
API
Backend
New in version 12.1
The
routing backend request attribute provides routing information in
the object
\TYPO3\.
Example:
/** @var \Psr\Http\Message\ServerRequestInterface $request */
$routing = $request->getAttribute('routing');
$arguments = $routing->getArguments()
See also
API
- class RouteResult
-
- Fully qualified name
-
\TYPO3\
CMS\ Backend\ Routing\ Route Result
A route result for the TYPO3 Backend Routing, containing the matched Route and the related arguments found in the URL