Google Plus links to Stack Exchange questions and answers

google-plus

If I go to Google Plus and share a link to a question here on a Stack Exchange site, then it works and I get a preview of the question page when I compose the Google Plus post. I'm talking about a post like this one, which links to

https://serverfault.com/q/199569/14103

However, if I do the same with a direct link to an answer, then it doesn't work. An example is this post, where I tried to link to this answer:

https://serverfault.com/a/343603/14103

That showed up as a simple link with no thumbnail from the site. Does anybody know why this is so? From looking at the site with wget, both links redirect to the page with the full text.

Best Answer

Google is unable to read the page via the short link to the answer. On first sight, the headers appear to be identical to the question short link. For the question Server Fault responds:

HTTP/1.1 301 Moved Permanently
Location: /questions/199569/where-to-maintain-central-source-repository

...but for the answer:

HTTP/1.1 301 Moved Permanently
Location: /questions/13267/git-and-mercurial/343603#343603

The only real difference is the #fragment in the redirect URL. Also, when using bit.ly URLs to test redirection with and without such fragment, Google gives the same results. So it's a Google thing.

As an aside, note that any Google tool that requests the page chokes on the short link - http://serverfault.com/a/199572:

Rich Snippets Testing Tool:

Google mobile viewer:

No good answer from Google as to why. They say it could be 'caused by an issue with web server configuration, an issue with your hosting provider or even an issue with their ISP'. Might take a question on Meta Stack Overflow to resolve?

--

Update: filed as a bug on Meta.SO.

--

Update: resolved on Google's side.