---
title: "Routes"
manual: "Yellowpages2"
version: "10.0"
permalink: "https://docs.typo3.org/permalink/jweiland/yellowpages2:routes@10.0"
source: "AdministratorManual/Routes/Index.rst"
rendered: "2026-11-20T15:36:35+00:00"
---

[https://docs.typo3.org/m/typo3/docs-how-to-document/main/en-us/GeneralConventions/FileStructure.html#includes-rst-txt](https://docs.typo3.org/m/typo3/docs-how-to-document/main/en-us/GeneralConventions/FileStructure.html#includes-rst-txt)

# Routes {#routes}

Configure RouteEnhancers to get speaking URLs for the company list, letter, and detail views.

## Example configuration {#example-configuration}

**config/sites/my_site/config.yaml**

```yaml
routeEnhancers:
  Yellowpages2Plugin:
    type: Extbase
    extension: Yellowpages2
    plugin: Directory
    routes:
      -
        routePath: '/first-company-page'
        _controller: 'Company::list'
      -
        routePath: '/company-page-{page}'
        _controller: 'Company::list'
        _arguments:
          page: 'currentPage'
      -
        routePath: '/company-by-letter/{letter}'
        _controller: 'Company::list'
      -
        routePath: '/show/{company_title}'
        _controller: 'Company::show'
        _arguments:
          company_title: company
    requirements:
      letter: '^(0-9|[a-z])$'
      company_title: '^[a-zA-Z0-9]+$'
    defaultController: 'Company::list'
    aspects:
      company_title:
        type: PersistedAliasMapper
        tableName: tx_yellowpages2_domain_model_company
        routeFieldName: path_segment
```
