Sign up ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

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

<a href="" class="twitter-share-button" data-url="" data-text="Description about my the page" data-count="horizontal">Tweet</a><script type="text/javascript" src=""> 

Works great, however when twitter I click on the button like a user would to tweet, it automatically shortens the URL using their 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

2 Answers 2

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 service. There are a few ways around it today, but in the future they will all be, but the 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.