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

Shrink URLs

(no phishing allowed)

Shrink 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://'+default_domain+'/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 %}