You can set up a webserver to host 'short links' to documents using the bultin-in "Short URL" application.
Configuration
- Set up an extra host name for the short links, eg 'go.webhare.dev'. Ensure it's setup properly in the DNS.
- Go the the Webservers application and add a rules-only webserver:

- Go to the Short URL application and add a short URL domain:

Make sure you set both a domain name and base URL. The 'domain name' is also used for managing links through the mod::publisher/lib/shorturl.whlib API and should be the 'production' name for these short URLs. The actual Base URL may differ on eg. test and development servers.
The URL of the short link domain will return a 404 (as no link is specified). To fix this. set up a redirect for '/' with an exact match access rule.
Don't forget to grant users or roles who need to set up short links with access to the Short URL application. Access can be granted to all or specific short URL domains:
