---
title: "Important: #86895 - Route aspects take precedence over requirements"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:important-86895"
source: "Changelog/9.5.x/Important-86895-RouteAspectsTakePrecedenceOverRequirements.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Important: #86895 - Route aspects take precedence over requirements

See [forge#86895](https://forge.typo3.org/issues/86895)

## Description

Route `requirements` are ignored for route variables having a corresponding
setting in `aspects`. Imagine there would be an aspect that is mapping internal
value `1` to route value `one` and vice verse - it is not possible to explicitly
define the `requirements` for this case - which is why `aspects` take precedence.

The following example illustrates the mentioned dilemma between route generation
and resolving:

```yaml
routeEnhancers:
  MyPlugin
    type: 'Plugin'
    namespace: 'my'
    routePath: 'overview/{month}'
    requirements:
      # note: it does not make any sense to declare all values here again
      month: '^(\d+|january|february|march|april|...|december)$'
    aspects:
      month:
        type: 'StaticValueMapper'
        map:
          january: '1'
          february: '2'
          march: '3'
          april: '4'
          may: '5'
          june: '6'
          july: '7'
          august: '8'
          september: '9'
          october: '10'
          november: '11'
          december: '12'
```

Actually the `map` in the previous example is already defining all valid values.
That's why actually `aspects` take precedence over `requirements` for a specific
`routePath` definition.
