Long URL not shortened by t.co


#1

Hi

I have a ridiculously long product catalogue URL in the following format;

http://www.test.server/enGB/Products/AllProducts/Product_Segment_1234/Product_Category_1234/Product_Subcategory_1234/Product_Detail_1234_Product_Variation__Blue__1234.html

We have the tweet button code on this product detail page and hoped that it would also shorten this URL to a more manageable t.co URL for us on submission for sharing on twitter, however it does not.

I also tried to submit a tweet on the http://twitter.com/ site itself to see if this is any different to the https://twitter.com/intent/tweet api, but http://twitter.com/ also cannot shorten the above example URL.

Why is this?
Have I discovered some strange edge case?

Thanks in advance,

Martin Graney


#2

I think I have it.

Although the above test URL is valid, as the www.test.server exists on our local DNS, it does not exist on the global DNS and so you are probably validating the URL gTLD when you are shortening.

I played around with various long URLs and it looks like this is the case.

When I am in the office tomorrow morning I will prepend the production server hostname and see it t.co shortens it OK.


#3

#4