I want to post an URL in Twitter, but I don't want it to be shortened - the domain is a 3 letter word so it doesn't even make sense to shorten it. However, when I am writing the tweet in the website I see the message "Link will appear shortened" and I don't find an option to disable that.
4 Answers
This is not possible. Twitter API will automatically shorten any URL.
Earlier, there was a way to go about disabling the URL wrapping - create a custom twitter app(example: a hosted dabr install) and disable URL shortening at the API settings. But now this option is no longer available
-
1
-
5Well, this is to monitor ang prevent spam. if they find a malicious link, then they will be able to disable it by not doing the redirection. HUGE win, considering several events in the past caused by links.– ArvinJul 1, 2012 at 19:34
-
The only way to display a full URL in Twitter is by using a 'fake' dot. This will obviously make the URL non-clickable too, but it's a good method if you want to make sure the URL gets displayed in a recognizable way.
BTW, here's such a fake dot: ․
-
Exactly the answer I was looking for. This is a great way to reduce characters in a Tweet, when you're just talking about domains rather than linking to them. I wish this solution was easier to find. Aug 19, 2016 at 14:58
-
2
-
1Cute, though it means the viewer can't get to the page by copy-pasting the url (without relying on search engine corrections). So this isn't ideal when the goal is really to prevent unfurling of undesirable content from the url, but you want people to be able to click on it.– nealmcbNov 6, 2018 at 14:55
-
1
-
This character appears to be the "One Dot Leader", ASCII = 8228. codetable.net/decimal/8228 Jan 15, 2021 at 22:06
Original answer: The accepted answer and others are incorrect, or perhaps "no longer correct". See http://www.labnol.org/internet/twitter-auto-converts-links/20771/
Revision in response to downvotes and suggestion for inline response:
The correct answer is that you need a "zero width space" character after special characters. For example @^Foo (where the ^ is this special character described below) will not translate into an At-link, and aaa.^com will not translate into a link.
This character is HTML ​ or Unicode U+200B. But you can't enter this directly in Twitter. The way to get this character depends on the application you're using, your system, and your fonts.
Method 1: In general, to enter this on your keyboard, make sure numlock is turned on, hold down the Alt key, enter 8203 on the numeric pad, then release the Alt key:
Alt+8203
It will insert the proper character, but you may see garbage depending on where you type this and the fonts. Some people report success with Alt+08203.
So on to method 2: The web page to which I linked has a javascript that inserts the special character into text. You can go there and use that, or you can insert the following code into a scriptlet of your own:
<p>Enter text:
<input id="tweet"
onkeyup="document.getElementById('result').innerHTML='<br/>'+
this.value.replace(/([@#\.])/ig, '$1​');"
type="text">
<span id="result" style="background:lightyellow"></span>
</p>
Finally for method 3: In Windows you can open the Character Map application. It's available in the Accessories start group, or by running charmap.exe
.
You can copy U+200B
like so: Activate advanced view and use the input field labelled "Go to Unicode". See above. Input 200B and the character will be highlighted. Click Select and Copy. Now the character is in your copy buffer. You can paste it into Twitter as follows (of course ctrlV means you hit that keystroke at that point) :
"This is not a #ctrlVhashtag, and foo.ctrlVcom is not a domain"
In summary, the answer is to use the zero-width space, but I've also added the answer to the next question (often asked on SO) which is "but how do I get that character?" While this is not a simple answer, it is nevertheless a solid answer to the question that was asked, and I believe folks will agree that other "you can't do that" answers provided here have been incorrect, or at least they are no longer correct.
I hope folks will reconsider the downvotes and perhaps even upvote this. Thanks.
-
1Please post the essential parts of the answer here, rather than telling people to go elsewhere.– ChrisF ♦Mar 6, 2015 at 19:57
-
Answer revised. Please remove downvotes or comment again on how this can be improved. Thanks.– TonyGMar 8, 2015 at 6:13
-
Upvote from me. The alternative link given provides the answer! I wanted to enter 'ASP.NET' into a tweet without it being "shortened" to a link and the method at the referenced website works perfectly.– NeoNov 13, 2015 at 21:41
-
This info was helpful to answer my own question and someone else's, about how avoid hashtag conversion in Google-Plus.– TonyGDec 23, 2017 at 20:42
You cannot do this due to security concerns, as mentioned before. It allows Twitter to have a kill switch over every link on the site. The problem, however, is that if you then link a Facebook account to your Twitter account, the link goes through onto Facebook in the form http://t.co/df334o
. This makes the link look ugly and sometimes out of context of what you're trying to convey.