Mautic Community Forums

Link Shortner Configuration

Under Configuration > Miscellaneous Settings, there’s mautic.core.config.form.link.shortener. Is there any documentation on how this can be configured or expanded upon? Specifically, I’m looking to shorten urls in SMS messages automatically with Google’s URL Shortener API.

Under Configuration > Miscellaneous Settings, there’s mautic.core.config.form.link.shortener. Is there any documentation on how this can be configured or expanded upon? Specifically, I’m looking to shorten urls in SMS messages automatically with Google’s URL Shortener API.

+1

+1 Also have the same problem. Want to short links of SMS messages. ¿Any solution?

Find the solution. You can use a shortener services (you must configure it in the configuration section) but there is a bug, and the server is not used. In file app/bundle/SmsBundle/EventListener/SmsSuscriber.php you have to change line 144 to:
$tokens[$token] = $this->trackableModel->generateTrackableUrl($trackable, $clickthrough,true);