Skip to Content

Usage

Web UI

Navigate to /local_shortlinks/. Shows report of your links.

Create

Click “Create short link”. Modal form opens:

  1. Enter destination URL (must be https://).
  2. Choose type: Short / Long / Unguessable.
  3. Add optional tags.
  4. 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.