---
title: "Feature: #86740 - Replace characters in slug"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-86740"
source: "Changelog/9.5.x/Feature-86740-AllowRemovalOfSlashInSlug.rst"
typo3-version: "9.5.x"
typo3-major: 9
type: "feature"
issue: 86740
forge: "https://forge.typo3.org/issues/86740"
tags: ["Frontend", "ext:core"]
rendered: "2026-09-19T12:12:50+00:00"
---

# Feature: #86740 - Replace characters in slug {#feature-86740}

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

## Description {#description}

The configuration of the TCA type `slug` has been extended by the setting `replace`.
It allows to replace strings of a slug part.

## Impact {#impact}

Especially for enhancing the site configuration it might be useful to set the configuration.

### Easy example {#easy-example}

By using the following configuration, slashes are removed from the slug.

```php
'type' => 'slug',
'config' => [
    'generatorOptions' => [
        'fields' => ['title'],
        'replacements' => [
            '/' => ''
        ],
    ]
    'fallbackCharacter' => '-',
    'prependSlash' => true,
    'eval' => 'uniqueInPid'
]
```

### Advanced examples {#advanced-examples}

The following configuration uses more replacements:

```php
'type' => 'slug',
'config' => [
    'generatorOptions' => [
        'fields' => ['title'],
        'replacements' => [
            '(f/m)' => '',
            '/' => '-'
        ],
    ]
    'fallbackCharacter' => '-',
    'prependSlash' => true,
    'eval' => 'uniqueInPid'
]
```

This will change the provided slug `Some Job in city1/city2 (f/m)` to `some-job-in-city1-city2`.
