How do short links work?

A URL shortener works because of a Web server function called a “Redirect” (URL redirection). … When you enter a URL a browser, this actually sends an HTTP command to the Web server directing it to fetch and transmit the requested Web page.

For More Information Please Refer: https://www.webopedia.com/DidYouKnow/Internet/how-to-shorten-a-url-using-a-url-shortener-service.html