3 ms·
It would love to see something like a "short" link tag. For example imagine that YouTube provided the following tag on video pages <link rel=short href="http
by kevincox 5y ago
It would love to see something like a "short" link tag. For example imagine that YouTube provided the following tag on video pages
<link rel=short href="https://youtu.be/abcdef"/>
Then copying the URL could copy the short link instead.
That being said I like when the URL is readable. The YouTube example works because everyone knows that YouTube is a video. Presumably for non-video links they could use something like /user/foobar to differentiate from their "main product". But for blog posts I would much rather see something like /short-urls rather than /su as the reader gets nothing from the first one.
- sysadm1n 5y agoYou could also specify the corresponding short URL of a page with a META tag: <meta property="shortlink" content="https://bit.ly/shortlink"> Just because it's not a standard doesn't mean you can't use it. This is sort of futureproofing incase it does become a standard.
- kevincox 5y agoI don't care if it is a "standard" but it would be nice if people agreed on something. Is the meta version being used anywhere? It looks what I described is very existing to the spec published here: https://microformats.org/wiki/rel-shortlink https://microformats.org/wiki/rel-shortlink
- sysadm1n 5y agoOnly learning about this now. Thanks for pointing it out. I remember seeing this in the source of some blogs, great to know the exact snippet of code I should be using.