Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Is possible to send URLs with "#" selector to Twitter ?

In other terms, can I generate a short url pointing to a specific section in my webpage ?

I've tried to pass the url but Twitter interpret what is after "#" selector as a twitter user.

I've also tried to use tinyurl.com APIs to generate a short URL for each section of y webpage, but it ignores "#" appended to urls...

thanks

share|improve this question
add comment

4 Answers

up vote 2 down vote accepted

Enter the hash mark as "%23" in the URL for URL-shortening services and Twitter.

Example:

http://en.wikipedia.org/wiki/Number_sign%23Computing

share|improve this answer
    
you are the best –  Patrick Feb 6 '11 at 15:44
    
does %23 work? According to this question, it doesn't: stackoverflow.com/questions/9633205/… –  Chris Betti May 31 '12 at 18:21
    
@ChrisBetti Testing confirms that both methods (%23 and # literal) are now working w/Twitter's t.co shortening service - can't vouch for tinyurl though. –  danlefree Jun 1 '12 at 11:55
add comment

You can use URL shortener like bquot.com, which allows linking to specific page section.

share|improve this answer
add comment

# is a special character in the Twitter world indicating a topic name so putting a # in a URL will cause issues and unintended results as twitter software will interpret that as a hash tag and try to hyperlink it to search results containing that tag. As mentioned above you'll want to use a URL shortener to work around this as it will obviously not have a # in the URL but instead redirect to the proper URL with the # included.

share|improve this answer
    
yeah but I've tried to create a short url with tinyurl.com and it ignores # and the appended arguments –  Patrick Feb 5 '11 at 18:00
add comment

Like http://bit.ly/fafQa9 goes to http://en.wikipedia.org/wiki/Number_sign#Computing? If you can’t do it directly through Twitter then I guess you’ll have to go via a URL shortening service and paste the link in.

share|improve this answer
    
Usually you want to use a shortener with Twitter since you only have 140 characters to work with. –  RandomBen Feb 5 '11 at 13:18
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.