Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

In questions, links get converted into question titles (see Replace trilogy raw links with the current question title?)

Can the same functionality be added to comments?

share|improve this question
For example:… could be replaced with the title the same as in the question text. – Alex B Feb 1 '11 at 18:23
I (personally) don't think that's is necessary and think this is enough fot comments, titles would be to spacey for comments, I don't know, I'm not donwn-voting though! – Trufa Feb 1 '11 at 19:09
(Just for the "Linked" section: this was also part of Can we improve the automatic titling of links to internal URLs?) – Arjan Apr 11 '11 at 11:22
This is a duplicate of an old feature request – rds Aug 19 '11 at 12:46
Link to user script to do this, generated via said user script - SE Comment Link Helper – Dukeling Sep 24 '13 at 19:35

This would be especially useful on mobile devices, where:

  • Cutting and pasting the title of a question and then its URL is a huge pain, because it involves switching back and forth between the comment page and the page with the question to be linked, without the aid of windows or tabs.

  • Have you ever tried editing Markdown on a mobile device? Moving the cursor and selecting bracket characters is not fun. And better get it right the first time, because clicking the edit button afterwards is even harder.

  • Userscripts aren't available on mobile.

As for Jeff's objections why it can't be done:

  • "Comments are processed on the fly." Just look up the title once and add the Markdown that we would otherwise have to type manually.

  • "If you want this, put your links in a post, where it is already supported." That's not a very good reason. You're basically arguing that we shouldn't even have comments.

share|improve this answer
I wholeheartedly agree. I will often comment on my phone as well. There's no reason the transformation couldn't happen when the comment is first accepted. – David Harkness Mar 4 '12 at 22:52
commenting for me on my Android only works with the Hacker's Keyboard, which has up-and down arrows etc. – rubo77 May 4 '14 at 14:03

I don't think full titles are all that useful in most cases.

We already have [site.SE] as a short-hand for a link to (and the SOFU exceptions, of course). Therefore, I think a useful middle ground would be [site.SE/(q|a)/ID] which would become [site.SE/ID](|a)/ID).

As an alternative (or in addition), translate [text](site.SE/(q|a)/ID) to [text](|a)/ID).

share|improve this answer

As a fast workaround, you can easily convert the question to a link by those steps:

Example URL:
  1. Paste it into the commentbox
  2. Shift+Ctrl+<-- repeat until you marked the question part of the url cross-site-question-parsing-for-question-urls-in-comments that is not needed in the post.
  3. Ctrl+x
  4. type )
  5. Ctrl+<-- repeat to the beginning of the URL
  6. type [Ctrl+v](

this will look like this:

whis is quite satisfying in a comment, and close to
Cross-site question parsing for question URLs in comments

(see also

share|improve this answer
Not all that satisfying IMO, and it costs valuable characters! – Nick Stauner May 5 '14 at 17:56
up vote -50 down vote

No, because comments are processed on the fly. This means a page with 12 links would incur 12 additional database queries -- every time the page is loaded.

Comments are meant to be lightweight. If you want this, put your links in a post, where it is already supported.

share|improve this answer
Although I am also not really agree with the request, but api does allow vectorized requests, that would not really cost 12 database queries for 12 links, isn't it? – YOU Apr 11 '11 at 7:55
This could be cached, so the database hits should not be an issue. Stop blaming the database when you mean "I don't think the value of X is worth the programming time" – Ian Ringrose Apr 11 '11 at 11:43
@ian database queries are never free, no matter how clever we are. The fundamental issue is that comments are always processed on the fly, unlike posts which store both raw and cooked representations. – Jeff Atwood Apr 11 '11 at 18:33
But why can't this be done in a static way? i.e. look up the title once when the comment gets created. Having to do this manually all the time is terribly cumbersome and time-consuming. – Pëkka Apr 30 '11 at 13:27
@Pekka You'd have to modify the raw comment content in that case, which would mean that trying to edit the comment afterward would show you something different than what you typed. That doesn't seem like the best solution. – Tim Stone Apr 30 '11 at 13:52
@Tim but that could be solved by an alternative syntax, say a leading ! in front of the link as a sign that you want it converted. This would be really helpful – Pëkka Apr 30 '11 at 13:54
@Pekka True, but you run the risk of going over the comment length limit by modifying the content in an automated way, which could cause issues. I'm sure it's doable anyway, but I can see why it might not be worth it. That said, gimme a few minutes for that userscript... – Tim Stone Apr 30 '11 at 13:57
Just made a similar request at…, and was told about this post. Although I understand the reasoning, they are still truncated and the left portion is displayed, so why not just display the trailing portion of the link, at least then there would be some meaningful info before mouse over. – Peter Grill Aug 9 '11 at 0:58
@TimStone In the extraordinarily rare event that it would cause the comment length to overflow, just don't do the conversion. – gitignore Dec 22 '11 at 13:50
@TimStone Userscripts don't work on my iPhone. Try adding a comment with a link to a question and its title, adding the markdown formatting by hand on a mobile device. It's not fun. – gitignore Dec 22 '11 at 13:54
I've posted another answer addressing these objections. – gitignore Dec 22 '11 at 14:06
Is this the similar problem with this: Expand links to Stack Exchange questions to show titles in chat when starred? – Pureferret Dec 12 '14 at 16:08
Okay, so the current implementation makes this difficult. Why not change the implementation then? Store "raw and cooked" representations of the comments. – Ajedi32 Feb 2 '15 at 16:45

You must log in to answer this question.

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