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!
Search for terminal42/contao-shortlink
in the Contao Manager and add it to your installation. Finally, update the
packages.
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.
Default configuration:
terminal42_shortlink:
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