First time here? Check out the FAQ!
0

Inconsistent parsing of URLs

When I include a URL in a question like this:

http://www.example.com/

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 (<http://www.example.com>):

http://www.example.com/

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., `http://www.example.com`). 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!

todofixthis's avatar
1.3k
todofixthis
asked 2012-03-26 00:24:59 -0500, updated 2012-04-14 15:39:32 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Here is a bare URL in a comment: http://www.example.com/ 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: http://www.example.com/

todofixthis's avatar todofixthis (2012-03-26 00:25:46 -0500) 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 -0500) edit
1

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

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

Thanks! (:

todofixthis's avatar todofixthis (2012-03-26 00:34:09 -0500) edit
add a comment see more comments

1 Answer

0

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

http://www.example.com/

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.

todofixthis's avatar
1.3k
todofixthis
answered 2012-03-26 00:26:32 -0500, updated 2012-03-26 00:30:38 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments