Ask Your Question

Inconsistent parsing of URLs

asked 2012-03-26 00:24:59 -0600

todofixthis's avatar

updated 2012-04-14 15:39:32 -0600

When I include a URL in a question like this:

Note that the URL is not automatically converted into a hyperlink. If I want to create a link, I must at minimum enclose it in angle brackets (<>):

However, this behavior is different when leaving a comment. In a comment, all URLs are automatically converted into hyperlinks... in fact, I can't seem to prevent this behavior!

Comment left on answer that shows URLs being converted into links.

From using certain other Q&A sites, I am used to the parser not automatically converting URLs into links if they are enclosed in backticks (e.g., ``). Askbot's comment parser does not even seem to respect this.

So question (and presumably answers as well): URLs never auto-converted.
Comments: URLs always auto-converted, even if you don't want them to be!

edit retag flag offensive close merge delete


Here is a bare URL in a comment: Notice it was automatically converted into a link. Now I will enclose the URL in backticks, which on other sites would prevent the URL from getting converted:

todofixthis's avatar todofixthis  ( 2012-03-26 00:25:46 -0600 )edit

Also note that the trailing slash in the URL is not included in the hyperlink.

todofixthis's avatar todofixthis  ( 2012-03-26 00:26:09 -0600 )edit

This is affecting hosted sites, we will fix this issue tomorrow.

Evgeny's avatar Evgeny  ( 2012-03-26 00:28:46 -0600 )edit

Thanks! (:

todofixthis's avatar todofixthis  ( 2012-03-26 00:34:09 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-03-26 00:26:32 -0600

todofixthis's avatar

updated 2012-03-26 00:30:38 -0600

Posting a bare URL in an answer to see if the same behavior occurs:

Interestingly, the preview shows that the URL does not automatically render as a link:

Screenshot of the preview for this answer showing that the URL is not automatically rendered.

(A screenshot of the preview for this answer... ooh, how meta!)

But as you can see, when I submit the answer, the URL does get converted into a link.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-03-26 00:24:59 -0600

Seen: 215 times

Last updated: Mar 26 '12