I found #962 and RocketChat/Rocket.Chat#28427, where it looks like the link parser is configured to auto-link valid FQDN hostnames and also turn explicit URLs (including a scheme) into links more consistently even when the hostname is local.
My suggestion is that, if possible, localhost specifically should be excluded from this behavior. At the moment, just including the bare word "localhost" in a chat message creates a link https://localhost. To a first approximation, this is basically never what the author intended.
I found #962 and RocketChat/Rocket.Chat#28427, where it looks like the link parser is configured to auto-link valid FQDN hostnames and also turn explicit URLs (including a scheme) into links more consistently even when the hostname is local.
My suggestion is that, if possible,
localhostspecifically should be excluded from this behavior. At the moment, just including the bare word "localhost" in a chat message creates a linkhttps://localhost. To a first approximation, this is basically never what the author intended.