Sometimes you see in answers or questions a link to an earlier answer to a different question. The url often is a mysterious sequence of digits and letters. How is it obtained? Linking to a question is easy: go to the question and see what is in the adress bar of your browser, but for answers this obviously doesn't work. Any help is appreciated!

Below each question and answer, you will see a 'share' button. Click on it and get this:

The url you need is right there, already selected to cut and paste.

• It might be worthwhile to observe that when doing this while logged in the url one gets looks somewhat different than the one in the image and depends on the user requesting it (via an appended "/[userID]"); depending on context one might prefer to remove this individual part.
– user9072
Sep 5, 2014 at 17:50

I have noticed that this was discussed in the comments to this question: Privacy of software-generated links to questions and answers. (Which was bumped not too long ago. The linked discussion mostly focuses around the fact that from the "share" button you get the link which can also identify the user copying the link and the possibilities how to get URL without the uid were discussed there.)

So I'll summarize a few things here. (To some extent, I am just repeating stuff already said in the answers to this post on Mathematics Meta: Distinguishing between questions and answers in references. The post is linked in the comments - but perhaps it is better if this information is posted as an answer, where it is easier to notice.)

On MO (and other SO sites) there are many possibilities how a working link to the answer can be formed. Let us mention at least the main two:

• The format site/a/id or site/a/id/uid - where id is the id of the answer. And if you copy the link from the share field, you will get also For example the link to this answer is: https://meta.mathoverflow.net/a/4749 https://meta.mathoverflow.net/a/4749 or, if I get the link from the "share" it will contain my uid and it will be: https://meta.mathoverflow.net/a/4749/8250 https://meta.mathoverflow.net/a/4749/8250
• You can get the link in the format https://meta.mathoverflow.net/questions/1885/how-do-i-link-to-a-mo-answer/4749#4749 How do I link to a MO answer? - basically it contains site/questions/qid/title/aid#aid. (So the id of the answer is used there as a HTML anchor.)

• Of course, one possible way is clicking on "share". And if you don't want uid, you can edit it out manually. (This is a bit cumbersome.)
• If you're after a link without uid, you can simply browse MathOverflow without being logged in or in incognito mode. (Again, to me this seems a bit cumbersome - but maybe that's a matter of personal teste.)
• Often it is easier to copy the URL from the browser's address bar. But to do that, you have to get an answer-link into the address bar in some way. There are various ways to do that.

In my answer on Mathematics Meta I describe also the shortened format site/q/qid#aid. for example, for this answer it is: https://meta.mathoverflow.net/q/1885#4749 https://meta.mathoverflow.net/q/1885#4749. And I give there also a link to a bookmarklet which can be used to obtain such links which are nicely formatted. (For example, for this answer you get [How do I link to a MO answer?](https://meta.mathoverflow.net/q/1885#4749) from that bookmarklet. Which is nicely formatted if you paste this into a post or into a comment: How do I link to a MO answer?) However, this is probably relevant mainly for writing comments - in which you have rather limited number of characters and it helps a lot if you can shorten the link.