Usage
Web UI
Navigate to /local_shortlinks/. Shows report of your links.
Create
Click “Create short link”. Modal form opens:
- Enter destination URL (must be
https://). - Choose type: Short / Long / Unguessable.
- Add optional tags.
- Submit.
New short URL appears in the report table.
Delete
Click delete icon on any row. Confirmation page. Confirm to delete. Link stops working.
Report Table
Columns: Short URL (clickable with favicon), Destination URL (clickable with favicon), Time created.
Only your own links shown. Downloadable.
Via API
$link = \local_shortlinks\local\api::create(
destinationurl: 'https://example.com/long/path',
type: \local_shortlinks\local\enums\type::SHORT,
tags: ['docs', 'important'],
);Returns \local_shortlinks\local\link persistent.