Configurable short alias length

Created on 26 November 2023, 7 months ago

Problem/Motivation

Currently the module generates a random number between 1 and 33554431, which when encoded will produce a string up to 5 characters long. The issue with this is that it is much more likely to generate a alias path that is 5 characters long compared to one that is 2 or 3 characters long, and it would be nice to increase that probability.

Proposed resolution

Add config to control the min and max number of characters in a generated alias. If an alias fails to be generated, there is an error reporting such. This error should change depending on the permissions of the user.

For someone with permissions to administer redirects, recommend that if the problem continues to try increasing the max character limit, and link them to the config.

For someone without these permissions, recommend that if the problem persists, they contact a site admin.

I have labeled the configurable path prefix issue as related, since (when that one is done) it might be worth configuring these prefixes before increasing the max character limit in order to increase the number of possible shorter aliases. These preferences may vary though.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States MegaKeegMan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024