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!

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
todofixthis's avatar
1.3k
todofixthis
asked 13 years ago, updated 13 years ago

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 (13 years ago)

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

todofixthis's avatar todofixthis (13 years ago)
1

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

Evgeny's avatar Evgeny (13 years ago)

Thanks! (:

todofixthis's avatar todofixthis (13 years ago)
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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
todofixthis's avatar
1.3k
todofixthis
answered 13 years ago, updated 13 years ago
link

Comments

see more comments