---
title: "Routing"
manual: "TYPO3 Explained"
version: "11.5"
permalink: "https://docs.typo3.org/permalink/t3coreapi:typo3-request-attribute-routing@11.5"
source: "ApiOverview/RequestLifeCycle/RequestAttributes/Routing.rst"
rendered: "2026-10-21T15:30:00+00:00"
---

> [!WARNING]
> **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](https://typo3.com/services/extended-support-elts).

# Routing {#typo3-request-attribute-routing}

The `routing` frontend request attribute provides routing information in
the object `\TYPO3\CMS\Core\Routing\PageArguments`. If you want to know the
current page ID or retrieve the query parameters this attribute is your friend.

Example:

```php
$pageArguments = $request->getAttribute('routing');
$pageId = $pageArguments->getPageId();
```

## API {#api}

-   **class PageArguments**

    -   *Fully qualified name:* `\TYPO3\CMS\Core\Routing\PageArguments`

    Contains all resolved parameters when a page is resolved from a page path segment plus all fragments.

    -   **areDirty()**

        -   *returntype:* bool

    -   **getRouteArguments()**

        -   *returntype:* array

    -   **getPageId()**

        -   *returntype:* int

    -   **getPageType()**

        -   *returntype:* string

    -   **get(string $name)**

        -   *param string $name:* the name

    -   **getArguments()**

        -   *returntype:* array

    -   **getStaticArguments()**

        -   *returntype:* array

    -   **getDynamicArguments()**

        -   *returntype:* array

    -   **getQueryArguments()**

        -   *returntype:* array

    -   **offsetExists(mixed $offset)**

        -   *param mixed $offset:* the offset
        -   *returntype:* bool

    -   **offsetGet(mixed $offset)**

        -   *param mixed $offset:* the offset

    -   **offsetSet(mixed $offset, mixed $value)**

        -   *param mixed $offset:* the offset
        -   *param mixed $value:* the value

    -   **offsetUnset(mixed $offset)**

        -   *param mixed $offset:* the offset
