URL Shortener
New in Tiki19
The problem: End users copy paste long, ugly URLs into Tiki. Later, the URL changes (ex.: for site upgrade testing, or domain update, etc.) and we have issues.
This feature takes advantage of Custom Routes
2 prefs:
function prefs_sefurl_list() { return [ 'sefurl_short_url' => [ 'name' => tr('Short URL'), 'description' => tr('Provides the ability to create a short url, easy to share.'), 'type' => 'flag', 'default' => 'n', 'keywords' => 'short url', 'dependencies' => [ 'feature_sefurl_routes', ], ], 'sefurl_short_url_base_url' => [ 'name' => tr('Short URL base URL'), 'description' => tra('The base URL that is used when generating short URLs, including the HTTP prefix, example: "http://www.example.com". By default will use the URL of the current website.'), 'type' => 'text', 'size' => '300', 'default' => '', 'keywords' => 'short url', 'dependencies' => [ 'sefurl_short_url', ], ], ]; }
Commits:
- http://sourceforge.net/p/tikiwiki/code/65842
- http://sourceforge.net/p/tikiwiki/code/66009
- http://sourceforge.net/p/tikiwiki/code/66519