I just tried to paste this URL in a comment:


but it comes out like this (note the trailing "...)" is no longer included):


Since the . and ) are part of the URL, they should be parsed as such.

This happens in questions and answers too, but in Q&A backslash escapes can be used as a workaround. In comments they cannot.

Loosely related: URLs in comments bugs

However in this case I do want the URL to be linkified. The URL is valid but is incorrectly being truncated.


2 Answers 2


You'll have to encode the parens, or do it in an answer where there is more comprehensive linking support.


This is a perennial problem with autolinking, and there's no one good answer. It's quite common to have trailing punctuation that isn't part of the URL (so I can do things like this, linking to http://www.example.com/...). In my experience (albeit on a non-technical forum), trimming the trailing characters fixes more comments than it breaks.

One way forward that works well for me is to count ) as a trailing-character-to-remove only if there's a ( character earlier in the URL. Don't know if that's feasible for how the comment linker works though.

  • I don't buy that argument. It's like having the spell checker in MS Word forcibly changing "escapade" to "escaped" without the option to disable it, just because the latter is more frequently used. Your URL is wrong (actually it's valid, because the trailing dots are part of the URL, but the URL you entered is not the one you intended.) and correct URLs shouldn't be made impossible to enter just so that some incorrect ones can be auto-corrected.
    – Perpetual Motion Goat
    Apr 24, 2010 at 23:29
  • In principle I agree, but the reality is not trimming the ends breaks a lot of links that normal users type. It's not impossible to enter URLs ending with . using the extended syntax in comments... it's just unfortunate that ) is used as the delimiter in this syntax so you can't have it in a URL at all.
    – bobince
    Apr 27, 2010 at 16:45

You must log in to answer this question.