Hacker News new | ask | show | jobs
by mrpf1ster 1088 days ago
I believe permalinks are removed when submitting
1 comments

(Note that this is not called a permalink but a fragment identifier https://www.w3.org/Addressing/URL/4_2_Fragments.html or, more memorably, the hash part of the URL https://developer.mozilla.org/en-US/docs/Web/API/URL/hash. Permalinks can be entirely different URLs, like a DOI link that is on a different domain and protocol altogether, but that will keep referring to this content https://en.wikipedia.org/wiki/Permalink)
Ah I was referring to the github specific terminology when sharing a link to a line inside a code file.
Thanks! I referred to them as anchors.
I think pedantically anchors are the markers in the document, and the URL fragments refer to the anchors to tell the browser to scroll there. If I'm wrong, someone will be along to correct me...