Converting words into a link

Started by jsx, November 04, 2022, 09:51:36 AM

Previous topic - Next topic

jsx

Hello.

In SMF 2.1, when someone puts a website address in a post, for example simplemachines.org, this address is automatically converted into a link. But there are some users who write the text as they write, i.e. like this: This is my test post. This.post...

And as can see, these words should not convert into a link. Maybe it would be a good idea to implement in 2.1 that only the entered address would be converted into a link. I think this conversion should only work if the domain is entered.

Kindred

Thing is... with new tlds, who knows what might be a valid url
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sesquipedalian

As a matter of fact, we do know which ones are valid, or at least which ones end with a valid TLD.

For example, ".post" is indeed a valid TLD these days, so This.post is a valid domain name just like example.com or any other.

In @jsx's example, the user may not have intended to enter a domain name, but they did. SMF's autolinker can't read minds; it can only read the text it is given. So if the user doesn't want the unintended URL to appear in their post, the solution is to fix their typo and put a space between the end of one sentence and the beginning of the next.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

jsx

I understand, thanks for the clarification.

shawnb61

I am closing this out as it is not a bug. 

Yes, they are creating far too many tlds...  But SMF needs to honor the valid tlds.
A question worth asking is born in experience & driven by necessity. - Fripp

Advertisement: