Mini Links

                
888b     d888 d8b          d8b      888      d8b          888               
8888b   d8888 Y8P          Y8P      888      Y8P          888               
88888b.d88888                       888                   888               
888Y88888P888 888 88888b.  888      888      888 88888b.  888  888 .d8888b  
888 Y888P 888 888 888 "88b 888      888      888 888 "88b 888 .88P 88K      
888  Y8P  888 888 888  888 888      888      888 888  888 888888K  "Y8888b. 
888   "   888 888 888  888 888      888      888 888  888 888 "88b      X88 
888       888 888 888  888 888      88888888 888 888  888 888  888  88888P' 
                

overview

Mini Links is a simple URL shortener for my own projects. The way it functions is by having a github pages site where only the 404 page is defined. This way if someone visits a site such as https://dhunt.link/portfolio they are directed to 404.html. From there, the pathname is then used to determine which address the user should be redirected to.

conclusion

While this project is quite simple, it is a creative way to solve the issue without the need for complex architecture or servers managing requests. If this was to be extended such that anyone could create their own shortened links or the number of links became massive, a more complex system would need to be devised.

~ ls