8

I just stumbled about this, and I am not sure what the correct procedure is here.

Mentioning Rarst's chart, I was not sure whether you should use the URL of the question or the URL produced by the "share"-function.

I know it is just a redirect - but how is the guideline for linking to internal content?

3 Answers 3

5

I am not sure what question you are referring to but the browser-address-bar URL and the "share" url should be equivalent in most respects. The "share" url, includes user data though so if posted to an outside site—a site off the Stack network—clicks will count toward several badges:

  • Announcer—Shared a link to a question that was visited by 25 unique IP addresses
  • Booster—Shared a link to a question that was visited by 300 unique IP addresses
  • Publicist—Shared a link to a question that was visited by 1000 unique IP addresses

I tend to use the "Share" one for consistency, and it is easier (for me) to right click and copy that one anyway.

4

The share link is a bit more specific as it adds a direct link to the question / answer that operates much like an anchor link (#) in HTML.

This functionality is much more evident when applied to ANSWERS , because you can directly connect to the relevant section in case there are multiple answers ( not always the accepted or most voted is the most relevant to the specific case, or maybe you want to show the WORST or WRONG answer ). It saves the trouble of searching for the relevant bit, especially on very long pages of elaborated answers ( not really applies in this site , but on the network you can find a lot ).

try opening the share link for my answer and then the link to Rarst´s answer , in separate tabs, and you will immediately see the difference.

you might also notice that the URL is a bit different. there is an added q for question and a for answer, and the consequent number is actually incremented by one (1) . for example, the question original ID ( for this very question) is 3803 the first answer (@Rarst) will be 3804 - the next one (@s_ha_dum) 3805 and so on. Mine will probably get 3806 unless someone answers at the same time OR already deleted an answer.

I am not sure of the following, but I will put it anyway : when a question is MOVED or renamed ( not deleted ) the browser URL can fail bringing you to some 404. but the share URL ( which uses only ID ) will not . much like the difference between permalink and ID in wp itself..

0

Use the share URL, there are badges in it for you (I am not sure however if it counts if you mean linking inside the site).

1
  • use the share URL indeed. But not for the badges - use it for it´s functionality
    – krembo99
    Commented Feb 8, 2014 at 7:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .