Skip to content

sbarbett/redirector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redirector

This is an app that generates redirect documents with custom meta tags. I built it to share links from my company's blog on LinkedIn because the platform wasn’t properly pulling screenshots or metadata from the source material. This app allows me to add my own screenshots and metadata for better presentation and sharing.

Features

  • Generate redirect pages with optimized metadata.
  • Customize metadata fields like title, description, author, and image.
  • Automatically fetch and save images locally from external URLs.
  • Easily manage redirects through a CLI tool:
    • Add new redirects.
    • Modify existing redirects.
    • List all redirects in JSON format.
    • Delete redirects.

Usage

  1. Run the app: Run using Docker.

    docker compose up -d
  2. Manage redirects: Use the CLI tool to add, modify or delete redirects.

    python cli.py

    Screenshot of CLI tool

  3. Access Redirects: Navigate to the route you set up (e.g., https://your-domain.com/my-redirect). The app will render the specified metadata and redirect users to the target URL.

Favicons

The /static directory has favicon.ico and apple-touch-icon.png images which can be replaced with your own icon.

Preview

If you want to preview what your links look like on social media apps, Zelolab has a free tool here.

Screenshot of Zelolab tool

Debug

Adding ?debug=true to the end of your redirect link will disable the automatic redirection, so you can inspect the page if needed.

Screenshot of debug

About

Miniature redirection app

Topics

Resources

License

Stars

Watchers

Forks