Early Access



Learn how to use the shortlink rel link tag to improve your site.

The shortlink link element is used to provide a shortened version of the current page’s URL. It’s especially useful for social media sharing, simplifying lengthy URLs for easier distribution and recall.

Code Examples

A secure, short URL that redirects to the canonical page.
Uses HTTP instead of HTTPS, missing the opportunity to secure the redirected connection.


  • Prefer HTTPS
    When generating shortlinks, use HTTPS to ensure secure connections and enhance trust with users.
  • Consistency is Key
    Ensure the shortlink points to the canonical version of the URL to avoid content duplication issues.

Related Documentation