I've noticed that link-ids are not rewritten. I would much prefer it if they were.
For instance, lets say I'm on this page. And, let's say I want to link to a specific answer like #3346729 by @Eric. It would be nice if an inserted link on the page to that question would get rewritten to be href="#3346729"
. This would prevent the need for my browser to reload the page. I would save a lot of time, and with this extra time I could help even more people.
This is of course only referencing the html to be rendered. I don't care at all about what sits in the SO DB... Though personally I wouldn't want to fix my internal linking to make assumptions about the transport.. That seems silly, but it is not my business. Wikipedia doesn't permit this because it is a bad idea, that's why Wikipedia is one step ahead with the [link generator]
, and even has [otherprojects:linkgenerators]
accessible that make no assumptions about where the questions/answers are currently sitting. Even perlmonks had link generators some 10 years ago, [rt:num]
, and[id:node]
.
UPDATE
If you change the display links to be only relative to the current page, you can no longer copy/paste them so that they can be used elsewhere, such as in another SO posting, or another website. – Robert Harvey 1 hour ago
So Dr. Harvey has a point. I looked into how Wikipedia does this, because they're a few steps ahead of Stack Overflow, and apparently all you have to do is not specify the "comment" number.
If you click on this link it will not rerender the page.
http://meta.stackexchange.com/questions/58645/updated-question-plz-reread-please-make-links-to-other-answers-in-the-same-qu#58685
or this link, '#58685`
If however, you click on this link it will
http://meta.stackexchange.com/questions/58645/updated-question-plz-reread-please-make-links-to-other-answers-in-the-same-qu/58685#58685
So what SO is doing is rendering a different canonical url entirely for the comment at /58685
even though that page is most probably the same, how very dirty.
Update AGAIN
Had to change the links because they changed when I updated the title (another SO bug I guess)
http://meta.stackexchange.com/questions/58645/58685#58685
also works)http://meta.stackexchange.com/questions/58645_foo
and you internal link tohttp://meta.stackexchange.com/questions/58645_foo#58685
the page doesn't get re-rendered, if however you internal link tohttp://meta.stackexchange.com/questions/58645_bar#58685
the page is forced to re-render.