2

If I post a link to a Question in a comment, why is it only shown in the Title and not as visible link?

For example in Questions If I post this URL:

Storing Objects in HTML5 localStorage

It is replaced with the title, but in comments it stays as link and only if you hover over it with the mouse, you see the link.

It seems like the comment only parses the part in the url that represents the question title, because in the hover, the Capitilisation is lost (see example link).

If that javascript already gets the Question out of the link, why not directly display it as text?

2

Because the link is too long to be fully displayed in a comment, you only see the title in the tooltip. If you don't want this, then use Markdown to display the title:

[Storing Objects in HTML5 localStorage](http://stackoverflow.com/questions/2010892/storing-objects-in-html5-localstorage)

See the result of this in my comment to this answer.

Or you can use the SE Comment Link Helper userscript to automatically change the links into [title](link) format.

  • 1
    That is quite a lot work, cause you need to copy both, the url and the Question separately – rubo77 May 4 '14 at 15:45
  • @rubo77: Unless the SE team implements a feature that changes the link into text, this is the only way to do so. It's not that much work. – ProgramFOX May 4 '14 at 15:48
  • @rubo77: I found a userscript like that, I'll link it in my answer. – ProgramFOX May 4 '14 at 15:58
  • I installed it in Greasemonkey, but no change to the linnks in comments ;( – rubo77 May 4 '14 at 16:19
  • @rubo77: Works fine for me. Try it out here: paste a link in a comment and press "Add Comment". The comment will contain a link in the [title](link) format. – ProgramFOX May 4 '14 at 16:21
  • Ah I understand, it changes the link before the comment is posted, so exixting comments are not replaced – rubo77 May 4 '14 at 17:15
  • @rubo77: Apparently, it worked. Yes, it does not replace existing comments, because the userscript is created to avoid copying both the title and the link. – ProgramFOX May 4 '14 at 17:16
  • That could be changed: github.com/rchern/StackExchangeScripts/issues/68 – rubo77 May 4 '14 at 17:21

You must log in to answer this question.

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