Extension to create shortlinks in Contao CMS

Fund package maintenance!

Installs: 3 352

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 7

Forks: 4

Open Issues: 1


1.2.1 2023-07-14 14:29 UTC


This extension allows to create shortlinks in the Contao back end, similar to bit.ly and other shortener services.


Choose the installation method that matches your workflow!

Installation via Contao Manager

Search for terminal42/contao-shortlink in the Contao Manager and add it to your installation. Finally, update the packages.

Manual installation

Add a composer dependency for this bundle. Therefore, change in the project root and run the following:

composer require terminal42/contao-shortlink

Depending on your environment, the command can differ, i.e. starting with php composer.phar … if you do not have composer installed globally.

Bundle configuration

Default configuration:

    host: ~
    catchall_redirect: ~
    salt: terminal42_shortlink
    log_ip: false
  • host: The host to use for shortlinks. Can be different than the website host, but make sure it is set up on your hosting/server.

  • catchall_redirect: If you configure a host exclusively for shortlinks, you can redirect all unknown requests to a URL (e.g. your regular website).

  • salt: If a shortlink does not have a custom alias (path), a unique hash ID is generated from the database ID. By changing the salt you can get unique IDs for your installation.

  • log_ip: This extension records how often a shortlink is accessed. Enable this flag to also capture IP addresses (not allowed under DSGVO in europe!)


This bundle is released under the MIT