<commit_before># Shorturl plugin for Bolt CMS

This plugin provides a new 'shorturl' fieldtype for contenttypes and redirects accordingly. When set up, it redirects i.e. from `http://yourhost/s/short` to `http://yourhost/page/this-is-my-long-slug`.

It runs before the internal routing and therefor overwrites all other routes.

## Setup

Add a `shorturl` fieldtype to your content type:

````
projects:
    [...]
    fields:
        [...]
        shorturl:
            type: shorturl
		[...]
    icon_one: fa:heart-o
    icon_many: fa:heart-o
````

You're done.

## Configuration

- `maxlength` (default: 10): Defines the maximal length of the shorturl hash.
- `prefix` (default: 's'): Defines the default prefix for shorturl routes (i.e. http://yourhost/**s**/short). If none is given, none is used (http://yourhost/short).

## About

„We build it“ — [ANIMAL](http://animal.at)
<commit_msg>Added checkunique to readme<commit_after># Shorturl plugin for Bolt CMS

This plugin provides a new 'shorturl' fieldtype for contenttypes and redirects accordingly. When set up, it redirects i.e. from `http://yourhost/s/short` to `http://yourhost/page/this-is-my-long-slug`.

It runs before the internal routing and therefor overwrites all other routes.

## Setup

Add a `shorturl` fieldtype to your content type:

````
projects:
    [...]
    fields:
        [...]
        shorturl:
            type: shorturl
		[...]
    icon_one: fa:heart-o
    icon_many: fa:heart-o
````

You're done.

## Configuration

- `maxlength` (default: 10): Defines the maximal length of the shorturl hash.
- `prefix` (default: 's'): Defines the default prefix for shorturl routes (i.e. http://yourhost/**s**/short). If none is given, none is used (http://yourhost/short).
- `checkunique` (default: true): Checks, if the given shorturl already exists.

## About

„We build it“ — [ANIMAL](http://animal.at)

{'fraction_non_alphanumeric': 0.13692061800745872, 'fraction_numerical': 0.002131060202450719, 'mean_word_length': 3.2974828375286043, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6755017', 'n_tokens_mistral': 602, 'n_tokens_neox': 591, 'n_words': 209}