Skip to main content

The Link Generator: Build Short Links Without Touching Config Files

Jacky LiangJacky Liang

Setting up a new short link means adding an entry to your configuration with the shortcode, redirect status code, and destination URL. For one or two links, that's fine. For a batch of campaign links or a team that doesn't want to touch config files, it's friction.

The link generator is a browser-based tool that lets you build short link configurations visually, then copy the result into your project.

How It Works

The link generator is a single-page app bundled with the project. Open it in a browser, fill in the shortcode, pick a redirect status code, enter the destination URL, and the tool generates the configuration entry you need.

For teams, this means the person creating campaign links doesn't need access to the project repository or familiarity with the config file format. They fill out the form, copy the output, and hand it to whoever manages the deployment.

Pre-Fill Support

The link generator supports URL-based pre-filling. You can construct a URL with query parameters that pre-populate the form fields — shortcode, redirect code, and destination. This is useful for creating bookmark links that pre-fill common values, or for building internal tools that link directly to the generator with context already filled in.

When to Use It

The link generator doesn't replace the configuration file — it generates entries for it. It's most useful when:

  • Non-technical team members need to create short link entries
  • You're setting up a batch of links and want to verify each one visually before adding it to the config
  • You want a shareable URL that pre-fills the generator with specific values

For developers who are comfortable editing the config directly, the generator is optional. But for teams where link creation is shared across roles, it removes a barrier.