Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

When creating a Twitter profile I noticed that all URLs I entered in the profile where changed from:

http://www.abzurb.com to abzurb.com and it uses a t.co link to link to the page.

https://twitter.com/abzurb

On most other Twitter profiles it just displays the full URL: http://www.blabla.com

Is there any way to change this?

share|improve this question
add comment

1 Answer 1

up vote 5 down vote accepted

Twitter wraps all URLs, in part of their content - bio, profile, tweets using their in-house URL shortener, primarily for their analytics & for security against malicious URLs.

Now on twitter's webpage as well on their API, twitter provides both the short URL, the the display URL as well as the actual URL

Here's an example from my twitter profile

 "id": 11594372,
  "id_str": "11594372",
  "name": "Sathya",
  "screen_name": "SathyaBhat",
  "location": "Bangalore, India",
  "description": "Super User & Web Apps Stack Exchange ♦, PLSQL Dev, Mangalorean, Rum, Beer, @Preshit certified lazyass, LOLG Nexus 4, Gaming http://t.co/fZDbzJdc",
  "url": "http://sathyabh.at",
  "entities":  {
    "url":  {
      "urls":  [
         {
          "url": "http://sathyabh.at",
          "expanded_url": null,
          "indices":  [
            0,
            18
          ]
        }
      ]
    },
    "description":  {
      "urls":  [
         {
          "url": "http://t.co/fZDbzJdc",
          "expanded_url": "http://sbhat.me",
          "display_url": "sbhat.me",
          "indices":  [
            124,
            144
          ]
        }
      ]
    }
  },

You can see that display_url is what twitter shows on their websites. Many twitter clients do not handle these well; some show expanded_url, others display_url while some more just show the shortened t.co URL.


While this is the explanation for why it looks different, there's no way to change this - that's how twitter does things.

share|improve this answer
    
Ok thanks for the explanation, but how come some profiles have a display_url of xyz.com and others don't? –  Stofke Apr 11 '13 at 13:18
    
@Stofke Link me to those profiles? –  Sathya Apr 11 '13 at 14:11
    
"@psdtuts, @DesignerDepot" for example they don't have the t.co in their urls –  Stofke Apr 20 '13 at 13:28
    
@Stofke those are URLs in the profile URL field, not the bio. They are not wrapped in t.co. Look above for same behaviour in my profile –  Sathya Apr 21 '13 at 6:29
    
I notice but how come my account is wrapped in t.co? I can't explain unless all new accounts are? www.twitter.com/abzurb –  Stofke Apr 22 '13 at 6:28
add comment

Your Answer

 
discard

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.