3 ms·
URLs in self-posts are not turned into links. URLs in comments are. There's no domain filtering in this code AFAIK. Your URL in the earlier comment wasn't turn
by dangrossman 13y ago
URLs in self-posts are not turned into links. URLs in comments are. There's no domain filtering in this code AFAIK.
Your URL in the earlier comment wasn't turned into a link because it wasn't a link, you just typed a bare domain without the protocol --
http://www.somewebaddress.io http://www.somewebaddress.io not www.somewebaddress.io
- bennyg 13y agoThey have to be turned into <a> links somehow. I feel like the server recognizes links and creates the proper HTML tags when generating the page.
- dangrossman 13y agoYes, the server recognizes links and creates the proper HTML tags. It does so by looking for properly formed URLs in the text, and does not check domains against any list. My comment was both an answer and an example -- the http://www.somewebaddress.io http://www.somewebaddress.io in it was turned into a link while www.somewebaddress.io was not. Perhaps that's unclear through whatever app you're reading this on.
- bennyg 13y agoAhh, I was under the impression that just typing www.google.com would come back correctly vs. having to put the http(s):// in front. I figured that a .io link was somehow different than a .com as far as link checking goes. Maybe www. should be added to the regex?
- deleted 13y ago[deleted]