b13/de-slash

De-Slash URLs - In case you do not want to havea trailing slash in your URLs, this extension will remove it

Maintainers

Package info

github.com/b13/de-slash

Type:typo3-cms-extension

pkg:composer/b13/de-slash

Transparency log

Statistics

Installs: 23 488

Dependents: 0

Suggesters: 0

Stars: 6

Open Issues: 1

3.0.1 2026-07-02 09:49 UTC

This package is auto-updated.

Last update: 2026-07-02 09:49:24 UTC


README

With TYPO3, it is possible to have a trailing slash in your URLs, but also without them - depending on the use-case.

By default, TYPO3 does not have a trailing slash at the end of each URL, but there are some technical limitations which, for example, cause it to happen on the home page where there is always a trailing slash.

You can configure a suffix like .html or / for each URL, and have additional enhancers for plugins.

This extension works in a straightforward way to remove trailing slashes from:

  • All generated links
  • All canonical URLs
  • HrefLang tags

It even redirects incoming URLs with a trailing slash to the same URL without one.

Configuration

Install the extension and ensure that all your site configuration bases for languages do NOT have a trailing slash.

Good: base: 'https://example.com/en' Bad: base: 'https://example.com/en/'

Good: base: '/fr' Bad: base: '/fr/'

That's it.

Caveats

  • Ensure that you do not have an enhancer or PageType decorator that creates URLs (also for plugins) with a trailing slash.

  • Redirects will only work on GET or HEAD requests.

Pending Issues

  • How to deal with redirects from EXT:redirects
  • This is currently an "all-in" solution - you can't disable this feature on a per-site basis.

Credits

This extension was created by Benni Mack in 2023 for b13 GmbH, Stuttgart.

Find more TYPO3 extensions we have developed that help us deliver value in client projects. As part of the way we work, we focus on testing and best practices to ensure long-term performance, reliability, and results in all our code.