When I click share
on a SE question, I get a link of the form:
http://stackoverflow.com/q/40464715/122687
But since I often need to paste in instant messaging or source code comments, I want it to be as short as possible, so I strip the /122687
part out and the link still works.
Can I rely on this continuing to work on the future, or am I setting myself up for problems?
My question applies not only to question links, but also to answer links such as http://stackoverflow.com/a/11227902/122687
where I remove the last part again, and it still works.
//stackoverflow.com/q/40464715
to have it even shorter. The last part is your user id, so that it counts towards the announcer badges. See also meta.stackoverflow.com/questions/274712/…file:///
when detecting protocol-relative URLs.