Ask Your Question
0

Inconsistent parsing of URLs

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

todofixthis gravatar image

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

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!

edit retag flag offensive 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 gravatar imagetodofixthis ( 2012-03-26 00:25:46 -0500 )edit

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

todofixthis gravatar imagetodofixthis ( 2012-03-26 00:26:09 -0500 )edit
1

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

Evgeny gravatar imageEvgeny ( 2012-03-26 00:28:46 -0500 )edit

Thanks! (:

todofixthis gravatar imagetodofixthis ( 2012-03-26 00:34:09 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

todofixthis gravatar image

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

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.

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

Stats

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

Seen: 106 times

Last updated: Mar 26 '12