{% extends 'layouts/base.njk' %} {% set title = app.name + ' - URL shortener' %} {% block scripts %} {% endblock %} {% block body %}

Shorten URLs

(no phishing allowed)

Shorten a URL

{{ macros.field(_locals, 'text', 'target_url', '', 'Target URL', 'Only valid URLs starting with http:// or https://', validation_attributes='required') }} {{ macros.field(_locals, 'text', 'slug', '', 'Custom url slug', 'Example: bear sets url to https://ily.li/bear', validation_attributes='disabled') }} {{ macros.field(_locals, 'checkbox', 'autogen_url', '', 'Generate url automatically', null, validation_attributes='checked') }} {{ macros.csrf(getCSRFToken) }}
{% set url = flash('url') %} {% if url | length %}
URL
{{ url }}
{% endif %}
{% include 'desktop-utility.njk' %} {% endblock %}