When is a URL shortener not a URL shortener?
qntm.org
qntm.org
Sadly, it will never be fixed. This is not a bug to them. They are forcing every url on twitter to go through t.co for click tracking. It is no longer possible to put a url into a tweet without going through t.co, unless you leave off the http, which makes it unclickable in a lot of clients.
https://dev.twitter.com/discussions/1062
Sounds like a bug.
e.g. It is often sufficiently descriptive to tweet "This is a great site: http://actionfiguresridingkittens.tumbly.mil
You disappointed me when I clicked that link and found it didn't exist.
I think a proper short URL looks neater too: "http://t.co/x812ks1 A site about action figures" "http://action.figures.com/rid... A site about action figures"
The short URL may not look pretty, but at least regular Twitter users will quickly learn to process it as "some URL". The longer abbreviated one breaks that convention and by including some actual meaning, it gets in the way.
So a tweet that says:
Check it out: http://zombo.com
Would be posted as: Check it out: <a href="http://t.co/whatever">http://zombo.com</a>
This would preserve Twitter's tracking while maximizing the amount of information in the displayed URL as well as meeting the user's expectations, intent, and needs. Thoughts?As long as it doesn't slow down the user experience much, adding in the additional layer, I think it'd be fine.
With regards to urls that are a bit of ways down the tree (http://www.foo.com/bar/baz/whatever), this isn't really an issue, as generally within a domain, the url-friendliness comes at an expense of a great deal of length, and you can do something like:
shortened url := http://short.nr/shorten(domain)shorten(tail)
and end up with something shorter.
When trying to shorten already-short urls, though, characters will not necessarily be gained.
From Twitter's perspective, the ideal solution might be to count "urls" as a fixed length, or an attachment, with respect to the length of a tweet so as to sidestep this issue entirely.
A similar case with data compression would be if you can guarantee that the decompressed data is never a valid compressed file. In this case, compress something iff that makes it shorter, and decompress something iff it's compressed.
My understanding is they don't do this (at least publicly) yet (http://www.dnxpert.com/2011/06/08/twitter-officially-launche...)
I recently found a t.co link in my server logs but thankfully was able to track statistics by looking at information provided by the bitly URL it forwarded to.
To use the zombo.com example above, why can't Twitter use the "shortener" to track redirects in the link and display the actual? <a href="http://t.co/?r=zombo.com>http://zombo.com</a>;
They're already doing something similar with elided URLs, why not with short ones?
I'm not familiar with the API--this of course assumes are tweets returned as html, not text.
if(strShortenedURL.Length > strURL.Length) { //Handle this case //donot use shortened version, use original URL }