Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the following code to generate a Tweet Button on my site.

<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://mysite.com/asdf" data-text="Description about my the page" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"> 

Works great, however when twitter I click on the button like a user would to tweet, it automatically shortens the URL using their http://t.co domain. I do not want this to happen as the data-url is going to be short enough as is.

Basically I want to still use the Tweet Button at some level, but don't want Twitter automatically shortening my URLs. Is this possible? Is there a different button/script I should look at?

share|improve this question

Your problem can be handled by using "#" for data-url.



 data-related="anywhere:The Javascript API"


share|improve this answer

Twitter is moving all links to their t.co service. http://support.twitter.com/entries/109623 There are a few ways around it today, but in the future they will all be t.co, but the t.co will be hidden.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.