-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autolinker incorrectly requires a full stop in URL and does not recognise links that start with http #27981
Comments
The auto linker feature and the Legacy message template it's deprecated and they'll be removed in the next release (6.0). Now we are validating if a link it's valid, and this type of link that you shared it's not valid because does not follow the proper URI pattern. We'll discuss this internally if it's possible and desirable to highlight file paths (like yours). |
While ICANN has banned the use of dotless domains on the internet, they are common on internal networks. Is there a concern that expanding the URI pattern to cover these form of links will erroneously flag not links? Because I'm seeing the exact opposite. All of these strings autolink, but none are actual links.
|
Hi @gregdavill That's the exact concern that we have If we let users to use dotless domains several normal texts can be confused by links, since each internal networks define its own structures.... About the links that you sent, I tested here and we started validating ICANN domains, the following links works properly: @matthias4217 and @gregdavill you can still create a link with dotless domain by using |
@hugocostadev The point of those example files was to show that the autolinker is NOT working. It should not be autolinking Python files and library files. I am really disappointed with how poorly the Rocket.chat developers have implemented this feature. |
We are happy to hear your ideas on how to accomplish that without affecting valid links like notion.so for e.g, nowadays we support adding links without protocol, that's why in some cases it autolinks, if we rollback this feature will be tradeoffs |
Hello! Unfortunately, only this issue prevents us from upgrading our chat infrastructure. |
How about allowing them as long as the protocol is present? We've been using a lot of different protocols that are using the format a specified by https://datatracker.ietf.org/doc/html/rfc1738 and as of RocketChat 6, these do not get recognized as links anymore, impacting workflows where users are expected to freely being able to copy and paste these URLs around and click them in Rocket Chat. For example: I don't see any argument where this can get mistaken with a "regular word". |
@hugocostadev can you suggest where in the code we could make a change to ensure that links with a full protocol are always detected as links? We deal with a high number of links with custom protocols that our users copy and paste on rocket chat, so updating to 6.0 is a big no-no until we find a solution for this. |
Rocket.chat URL autolinker is not working correctly any more. We have many internal servers that are a single word such as
https://jira/ticket_number OR https:://regression/path/
Rocket.chat no longer recognises these as a URL. It only autolinks when a full stop
.
is in the URL.Please fix the behaviour, such that autolinker creates a link for anything starting with standard nomenclature of http://, https://, ftp://, sftp://, i.e. a regex of a string beginning with (.*://) should always autolink.
This is on version 5.4.2
The text was updated successfully, but these errors were encountered: